Skip to main content
POST
/
api
/
v1
/
provider
/
models
/
llm
/
{model_uuid}
/
test
测试 LLM 模型
curl --request POST \
  --url http://localhost:5300/api/v1/provider/models/llm/{model_uuid}/test \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "prompt": "Hello"
}
'
{
  "code": 0
}

Authorizations

X-API-Key
string
header
required

Path Parameters

model_uuid
string<uuid>
required

Body

application/json
prompt
string

测试用的提示文本

Example:

"Hello"

Response

200 - application/json

操作成功

code
integer
Example:

0