メインコンテンツへスキップ
GET
/
api
/
v1
/
provider
/
models
/
llm
获取所有 LLM 模型
curl --request GET \
  --url http://localhost:5300/api/v1/provider/models/llm \
  --header 'X-API-Key: <api-key>'
{
  "code": 0,
  "data": {
    "models": [
      {
        "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "gpt-4o",
        "provider_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "abilities": [
          "chat",
          "vision",
          "tool-use"
        ],
        "extra_args": {},
        "prefered_ranking": 0,
        "created_at": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z"
      }
    ]
  }
}

承認

X-API-Key
string
header
必須

クエリパラメータ

provider_uuid
string<uuid>

按供应商 UUID 过滤

レスポンス

200 - application/json

成功

code
integer
:

0

data
object