feat(api): 统一公开接口为 /api/v1 前缀
将通用生成、Gemini、可灵、火山、健康检查与 OpenAPI 的推荐入口统一到 /api/v1,并保留历史路径作为兼容别名。同步更新代理配置、接入文档、接口清单和前缀回归测试。\n\n验证:go vet ./...;go test ./...;pnpm openapi;pnpm lint;pnpm test;pnpm build;公开 OpenAPI 71 个方法与接口清单机器比对一致。
This commit is contained in:
+4
-4
@@ -91,7 +91,7 @@ flowchart LR
|
||||
QUEUE --> PG
|
||||
QUEUE --> CALLBACK -->|POST task progress callback to server-main| WSGW
|
||||
QUEUE -->|settlement event| BILL
|
||||
API -->|POST /v1/files/upload| FILES
|
||||
API -->|POST /api/v1/files/upload| FILES
|
||||
```
|
||||
|
||||
## 4. Monorepo 方案
|
||||
@@ -1785,9 +1785,9 @@ SimulationClient 根据 `simulation_profile` 生成确定性行为:
|
||||
- `/chat/completions`
|
||||
- `/images/generations`
|
||||
- `/video/generations`
|
||||
- `/v1/chat/completions`
|
||||
- `/v1/images/generations`
|
||||
- `/v1/video/generations`
|
||||
- `/api/v1/chat/completions`
|
||||
- `/api/v1/images/generations`
|
||||
- `/api/v1/video/generations`
|
||||
|
||||
内部 `OpenaiService` 变成薄门面:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user