跳转到主要内容
GET
/
api
/
v1
/
provider
/
models
/
llm
/
{model_uuid}
获取指定的大语言模型
curl --request GET \
  --url http://localhost:5300/api/v1/provider/models/llm/{model_uuid} \
  --header 'X-API-Key: <api-key>'
{ "code": 0, "msg": "ok", "data": { "model": { "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "GPT-4", "description": "OpenAI GPT-4 model", "requester": "openai-chat-completions", "requester_config": { "model": "gpt-4", "args": {} }, "api_keys": [ { "name": "<string>", "keys": [ "<string>" ] } ], "abilities": [ "chat", "vision" ], "extra_args": {}, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" } } }

授权

X-API-Key
string
header
必填

使用 X-API-Key 请求头进行 API 密钥认证。 示例:X-API-Key: lbk_your_api_key_here

路径参数

model_uuid
string<uuid>
必填

模型 UUID

响应

成功响应

code
integer
示例:

0

msg
string
示例:

"ok"

data
object