切换 Tiantoken 并删除旧 Vidu 音效
Project CI / AI game creator shell Rust shard 2/4 (push) Successful in 5m31s
Project CI / AI game creator shell Rust shard 4/4 (push) Successful in 5m31s
Project CI / AI game creator shell Rust shard 1/4 (push) Successful in 5m47s
Project CI / AI game creator shell Rust shard 3/4 (push) Successful in 5m48s
Project CI / AI game creator shell Rust smoke (push) Successful in 1m43s
Project CI / AI game creator shell Rust crates (push) Successful in 2m3s
Project CI / Repository checks (push) Successful in 3m43s
Project CI / Frontend tests (push) Successful in 4m53s
Project CI / Native shell tests (push) Successful in 6m35s
Project CI / Backend tests (push) Successful in 7m25s
Project CI / AI game creator shell web tests (push) Successful in 2m35s

新增 TIANTOKEN_BASE_URL / TIANTOKEN_API_KEY 配置并切换文本与图片链路

保留 Suno VectorEngine 路径,删除旧 Vidu submit/poll/builder 实现

同步脚本、文档、测试与运行时 provider 路由
This commit is contained in:
2026-09-15 19:43:35 +08:00
parent 687bad0adf
commit 29e84a77d1
32 changed files with 217 additions and 843 deletions
+10 -10
View File
@@ -1069,12 +1069,12 @@ describe('apiClient', () => {
code: 'UPSTREAM_ERROR',
message: '上游暂不可用',
details: {
provider: 'vector-engine',
provider: 'tiantoken',
message:
'创建拼图 VectorEngine 图片编辑任务失败:error sending request for url (https://api.vectorengine.ai/v1/images/edits)',
'创建拼图 Tiantoken 图片编辑任务失败:error sending request for url (https://api.tiantoken.com/v1/images/edits)',
reason:
'无法连接 VectorEngine 图片编辑接口,请检查服务器网络、DNS、防火墙或代理配置',
endpoint: 'https://api.vectorengine.ai/v1/images/edits',
'无法连接 Tiantoken 图片编辑接口,请检查服务器网络、DNS、防火墙或代理配置',
endpoint: 'https://api.tiantoken.com/v1/images/edits',
},
},
meta: {},
@@ -1095,11 +1095,11 @@ describe('apiClient', () => {
),
).rejects.toMatchObject({
message:
'无法连接 VectorEngine 图片编辑接口,请检查服务器网络、DNS、防火墙或代理配置',
'无法连接 Tiantoken 图片编辑接口,请检查服务器网络、DNS、防火墙或代理配置',
status: 502,
code: 'UPSTREAM_ERROR',
details: {
provider: 'vector-engine',
provider: 'tiantoken',
},
});
});
@@ -1116,8 +1116,8 @@ describe('apiClient', () => {
code: 'SERVICE_UNAVAILABLE',
message: '服务暂不可用',
details: {
provider: 'vector-engine',
reason: 'VECTOR_ENGINE_API_KEY 未配置',
provider: 'tiantoken',
reason: 'TIANTOKEN_API_KEY 未配置',
},
},
meta: {},
@@ -1137,11 +1137,11 @@ describe('apiClient', () => {
'执行抓大鹅共创操作失败',
),
).rejects.toMatchObject({
message: 'VECTOR_ENGINE_API_KEY 未配置',
message: 'TIANTOKEN_API_KEY 未配置',
status: 503,
code: 'SERVICE_UNAVAILABLE',
details: {
provider: 'vector-engine',
provider: 'tiantoken',
},
});
});