Skip to main content
GET
/
api
/
v1
/
provider
/
models
/
embedding
获取所有向量模型
curl --request GET \
  --url http://localhost:5300/api/v1/provider/models/embedding \
  --header 'X-API-Key: <api-key>'
{
  "code": 0,
  "data": {
    "models": [
      {
        "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "text-embedding-3-small",
        "provider_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "extra_args": {},
        "prefered_ranking": 0,
        "created_at": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z"
      }
    ]
  }
}

Authorizations

X-API-Key
string
header
required

Query Parameters

provider_uuid
string<uuid>

按供应商 UUID 过滤

Response

200 - application/json

成功

code
integer
Example:

0

data
object