Embedding模型
检索Embedding模型列表
检索Embedding模型列表。
GET
鉴权
神州问学 API 使用 App-Id 和 Api-Key 进行鉴权,需要在调用接口时将其填入到 HTTP 请求的请求头参数中。可以参考鉴权。
请求
curl --location --request GET '{api_base_url}/opi-maas/v1/embedding/models' \
--header 'App-Id: {App-Id}' \
--header 'Api-Key: {Api-Key}' \
--header 'Connection: keep-alive'响应
{
"code": 0,
"data": [
{
"id": 3274,
"model": "openai/embedding-3",
"model_info": {
"mode": "embedding"
},
"supported_openai_params": [],
"model_source": 1
},
{
"id": 3297,
"model": "azure/text-embedding-ada-002",
"model_info": {
"mode": "embedding"
},
"supported_openai_params": [],
"model_source": 1
},
{
"id": 3267,
"model": "openai/bge-m3",
"model_info": {
"mode": "embedding"
},
"supported_openai_params": [],
"model_source": 1
},
{
"id": 3365,
"model": "openai/bge-m3",
"model_info": {
"mode": "embedding"
},
"supported_openai_params": [],
"model_source": 3
},
{
"id": 3338,
"model": "openai/Qwen3-Embedding-0.6B",
"model_info": {
"mode": "embedding"
},
"supported_openai_params": [],
"model_source": 1
},
{
"id": 3342,
"model": "openai/Qwen3-Embedding-0.6B",
"model_info": {
"mode": "embedding"
},
"supported_openai_params": [],
"model_source": 1
}
],
"msg": "success"
}错误信息
{
"success": false,
"error": {
"code": 1003,
"message": "参数错误",
"litellm_message": null,
"type": "business_error"
}
}| 错误代码 | 错误信息 |
|---|---|
| 1000 | 服务器内部错误 |
| 1003 | 参数错误 |
| 1001 | 数据库错误 |
神州问学文档中心