chore: 移除调试文件 bug.txt/out.txt,忽略 .superpowers 与运维目录
This commit is contained in:
parent
2d12c5a20b
commit
79afa037e2
4
.gitignore
vendored
4
.gitignore
vendored
@ -24,3 +24,7 @@ dist-ssr
|
||||
*.sw?
|
||||
TEST/
|
||||
docs/
|
||||
.superpowers/
|
||||
运维/
|
||||
bug.txt
|
||||
out.txt
|
||||
|
||||
65
out.txt
65
out.txt
@ -1,65 +0,0 @@
|
||||
接口文档
|
||||
|
||||
根据平台编码获取可学官方模型
|
||||
|
||||
请求
|
||||
|
||||
GET /suanli/v1/platforms/:code/models
|
||||
|
||||
┌──────┬────────┬──────┬─────────────────────────────────────────────────────┐
|
||||
│ 参数 │ 类型 │ 必填 │ 说明 │
|
||||
├──────┼────────┼──────┼─────────────────────────────────────────────────────┤
|
||||
│ code │ string │ 是 │ 平台编码(platform_identifiers.code),URL 路径参数 │
|
||||
└──────┴────────┴──────┴─────────────────────────────────────────────────────┘
|
||||
|
||||
请求头
|
||||
|
||||
Authorization: <token>
|
||||
|
||||
▎ 无需 Bearer 前缀。
|
||||
|
||||
响应
|
||||
|
||||
成功
|
||||
|
||||
{
|
||||
"code": 0,
|
||||
"data": {
|
||||
"platform": {
|
||||
"id": "uuid",
|
||||
"code": "openai",
|
||||
"name": "OpenAI"
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"id": "uuid",
|
||||
"name": "gpt-4",
|
||||
"display_name": "GPT-4",
|
||||
"category": "llm",
|
||||
"billing_unit": "token",
|
||||
"unit_price": 0.03,
|
||||
"billing_mode": "post",
|
||||
"plugin_code": null,
|
||||
"endpoint": null,
|
||||
"sort_order": 1,
|
||||
"is_public": 1,
|
||||
"owner_org_id": null
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
┌───────────────┬──────────────────────────────────────────────────────────────────────────────────────────┐
|
||||
│ 字段 │ 说明 │
|
||||
├───────────────┼──────────────────────────────────────────────────────────────────────────────────────────┤
|
||||
│ data.platform │ 平台信息 │
|
||||
├───────────────┼──────────────────────────────────────────────────────────────────────────────────────────┤
|
||||
│ data.models │ 该平台下 owner_type=platform 且 status=active 的模型列表,按 sort_order、created_at 排序 │
|
||||
└───────────────┴──────────────────────────────────────────────────────────────────────────────────────────┘
|
||||
|
||||
平台不存在或已禁用
|
||||
|
||||
{
|
||||
"code": 1,
|
||||
"message": "平台不存在或已禁用"
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user