mirror of
https://git.openapi.site/https://github.com/desirecore/market.git
synced 2026-06-06 07:10:44 +08:00
fix: 媒体技能改用动态 provider 发现,移除硬编码 providerId
minimax-music-gen (1.1.2 → 1.1.3): - providerId: "provider-minimax-media-001" → provider: "minimax" + serviceType: "music_gen" minimax-video-gen (1.2.1 → 1.2.2): - providerId: "provider-minimax-media-001" → provider: "minimax" + serviceType: "video_gen" 此前硬编码的 provider-minimax-media-001 在系统中不存在,导致使用 MiniMax Token Plan 或 Coding Plan 时文生音乐/文生视频功能无法路由。 改为 slug + serviceType 动态发现后,无论用户启用按量 API 还是 Token/Coding Plan,findProvider() 都能正确匹配。
This commit is contained in:
@@ -7,7 +7,7 @@ description: >-
|
||||
AI 作曲、创作歌曲、写一首歌、音乐生成、AI 音乐、MiniMax 音乐、
|
||||
作词作曲、纯音乐、伴奏、翻唱、cover。
|
||||
license: Complete terms in LICENSE.txt
|
||||
version: 1.1.2
|
||||
version: 1.1.3
|
||||
type: procedural
|
||||
risk_level: low
|
||||
status: enabled
|
||||
@@ -123,7 +123,8 @@ PORT=$(cat ~/.desirecore/agent-service.port)
|
||||
curl -sk -X POST "https://127.0.0.1:${PORT}/api/media-proxy" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"providerId": "provider-minimax-media-001",
|
||||
"provider": "minimax",
|
||||
"serviceType": "music_gen",
|
||||
"endpoint": "/music_generation",
|
||||
"body": {
|
||||
"model": "music-2.6",
|
||||
@@ -146,7 +147,8 @@ PORT=$(cat ~/.desirecore/agent-service.port)
|
||||
curl -sk -X POST "https://127.0.0.1:${PORT}/api/media-proxy" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"providerId": "provider-minimax-media-001",
|
||||
"provider": "minimax",
|
||||
"serviceType": "music_gen",
|
||||
"endpoint": "/music_generation",
|
||||
"body": {
|
||||
"model": "music-2.6",
|
||||
@@ -259,7 +261,8 @@ PORT=$(cat ~/.desirecore/agent-service.port)
|
||||
curl -sk -X POST "https://127.0.0.1:${PORT}/api/media-proxy" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"providerId": "provider-minimax-media-001",
|
||||
"provider": "minimax",
|
||||
"serviceType": "music_gen",
|
||||
"endpoint": "/music_generation",
|
||||
"body": {
|
||||
"model": "music-2.6",
|
||||
@@ -282,7 +285,7 @@ curl -sk -X POST "https://127.0.0.1:${PORT}/api/media-proxy" \
|
||||
- `base_resp.status_code: 1008`: insufficient balance
|
||||
- `base_resp.status_code: 1026`: content sensitive, modify the lyrics or prompt and retry
|
||||
- `base_resp.status_code: 2013`: parameter error, check required fields
|
||||
- `success: false` + `error: "未找到匹配的供应商"`: MiniMax Provider not configured
|
||||
- `success: false` + `error: "未找到匹配的供应商"`: No enabled MiniMax provider with `music_gen` service found
|
||||
|
||||
### Notes
|
||||
|
||||
|
||||
@@ -58,7 +58,8 @@ PORT=$(cat ~/.desirecore/agent-service.port)
|
||||
curl -sk -X POST "https://127.0.0.1:${PORT}/api/media-proxy" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"providerId": "provider-minimax-media-001",
|
||||
"provider": "minimax",
|
||||
"serviceType": "music_gen",
|
||||
"endpoint": "/music_generation",
|
||||
"body": {
|
||||
"model": "music-2.6",
|
||||
@@ -81,7 +82,8 @@ PORT=$(cat ~/.desirecore/agent-service.port)
|
||||
curl -sk -X POST "https://127.0.0.1:${PORT}/api/media-proxy" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"providerId": "provider-minimax-media-001",
|
||||
"provider": "minimax",
|
||||
"serviceType": "music_gen",
|
||||
"endpoint": "/music_generation",
|
||||
"body": {
|
||||
"model": "music-2.6",
|
||||
@@ -194,7 +196,8 @@ PORT=$(cat ~/.desirecore/agent-service.port)
|
||||
curl -sk -X POST "https://127.0.0.1:${PORT}/api/media-proxy" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"providerId": "provider-minimax-media-001",
|
||||
"provider": "minimax",
|
||||
"serviceType": "music_gen",
|
||||
"endpoint": "/music_generation",
|
||||
"body": {
|
||||
"model": "music-2.6",
|
||||
@@ -217,7 +220,7 @@ curl -sk -X POST "https://127.0.0.1:${PORT}/api/media-proxy" \
|
||||
- `base_resp.status_code: 1008`:余额不足
|
||||
- `base_resp.status_code: 1026`:内容敏感,修改歌词或 prompt 后重试
|
||||
- `base_resp.status_code: 2013`:参数错误,检查必填字段
|
||||
- `success: false` + `error: "未找到匹配的供应商"`:未配置 MiniMax Provider
|
||||
- `success: false` + `error: "未找到匹配的供应商"`:未找到已启用且支持 `music_gen` 服务的 MiniMax Provider
|
||||
|
||||
### 注意事项
|
||||
|
||||
|
||||
Reference in New Issue
Block a user