75 lines
2.7 KiB
JSON
75 lines
2.7 KiB
JSON
{
|
|
"defaultAdapter": "owned-model-platform",
|
|
"adapters": [
|
|
{
|
|
"id": "owned-model-platform",
|
|
"label": "用户自有模型平台",
|
|
"kind": "custom-json-http",
|
|
"enabled": true,
|
|
"baseUrl": "http://127.0.0.1:7860",
|
|
"routes": {
|
|
"textToShot": "/api/drama/shot",
|
|
"image": "/api/generate/image",
|
|
"imageEdit": "/api/generate/image-edit",
|
|
"imageToVideo": "/api/generate/i2v",
|
|
"tts": "/api/voice/tts",
|
|
"compose": "/api/video/compose"
|
|
},
|
|
"auth": {
|
|
"type": "none"
|
|
},
|
|
"notes": "主适配器。允许 HTTP/OpenAI-compatible/自定义 JSON 映射,不默认依赖云端。"
|
|
},
|
|
{
|
|
"id": "openai-compatible-local",
|
|
"label": "OpenAI-compatible 本地网关",
|
|
"kind": "openai-compatible",
|
|
"enabled": false,
|
|
"baseUrl": "http://127.0.0.1:8000/v1",
|
|
"models": {
|
|
"script": "local-qwen-longwriter",
|
|
"vision": "local-qwen-vl",
|
|
"tts": "local-tts-voice-lock"
|
|
},
|
|
"notes": "用于把自有网关伪装成 OpenAI API 形态。"
|
|
},
|
|
{
|
|
"id": "newapi-audio-production",
|
|
"label": "NewAPI 音频中转",
|
|
"kind": "openai-compatible-audio",
|
|
"enabled": false,
|
|
"baseUrl": "https://newapi.ysblack.com/v1",
|
|
"auth": {
|
|
"type": "bearer",
|
|
"env": "NEWAPI_API_KEY"
|
|
},
|
|
"models": {
|
|
"tts": "IndexTTS-2.5",
|
|
"asr": "paraformer-zh-long"
|
|
},
|
|
"routes": {
|
|
"tts": "/audio/speech",
|
|
"asr": "/audio/transcriptions"
|
|
},
|
|
"requestContracts": {
|
|
"tts": "multipart/form-data with model, input, voice, response_format, optional speed, optional kwargs, and prompt_speech file",
|
|
"asr": "multipart/form-data with model, file, language=zh, response_format=verbose_json"
|
|
},
|
|
"notes": "用户已部署的 Xinference 模型通过 NewAPI 中转。IndexTTS-2.5 用 prompt_speech 参考音频锁定角色声线;paraformer-zh-long 返回中文识别文本和词级时间戳。示例只声明 NEWAPI_API_KEY 环境变量,不保存密钥。"
|
|
},
|
|
{
|
|
"id": "comfyui-optional",
|
|
"label": "ComfyUI 可选适配器",
|
|
"kind": "comfyui",
|
|
"enabled": false,
|
|
"baseUrl": "http://127.0.0.1:8188",
|
|
"workflowRefs": {
|
|
"qwenImage": "../codex_qu_2026-08-15/work/user-comfy-workflows-ai-drama-painting/AI短剧__绘画__04_QwenImage2512高质量_官方.json",
|
|
"qwenEdit": "../codex_qu_2026-08-15/work/06_QwenEdit2511_动漫连续分镜_FP8Mixed_40步_本地.json",
|
|
"h3Bridge": "../codex_qu_2026-08-15/work/rebuild_no_narration_v1.py"
|
|
},
|
|
"notes": "仅作为可选桥接。默认不使用付费或外部 API 节点。"
|
|
}
|
|
]
|
|
}
|