Skip to main content
POST
/
api
/
v1
/
provider
/
models
/
embedding
创建向量模型
curl --request POST \
  --url http://localhost:5300/api/v1/provider/models/embedding \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "name": "text-embedding-3-small",
  "provider_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "extra_args": {},
  "prefered_ranking": 0
}
'
{
  "code": 0,
  "data": {
    "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}

Authorizations

X-API-Key
string
header
required

Body

application/json
name
string
required
Example:

"text-embedding-3-small"

provider_uuid
string<uuid>
required
extra_args
object
prefered_ranking
integer
default:0

Response

200 - application/json

创建成功

code
integer
Example:

0

data
object