自定义tts接口参数转dict

支持post请求
This commit is contained in:
XL
2025-05-15 15:39:06 +08:00
parent 073b69f94a
commit 6dd66dbae9
3 changed files with 16 additions and 1 deletions
@@ -0,0 +1,4 @@
-- 修改自定义TTS接口请求定义
update `ai_model_provider` set `fields` =
'[{"key":"url","label":"服务地址","type":"string"},{"key":"method","label":"请求方式","type":"string"},{"key":"params","label":"请求参数","type":"dict","dict_name":"params"},{"key":"headers","label":"请求头","type":"dict","dict_name":"headers"},{"key":"format","label":"音频格式","type":"string"},{"key":"output_dir","label":"输出目录","type":"string"}]'
where `id` = 'SYSTEM_TTS_custom';
@@ -142,3 +142,10 @@ databaseChangeLog:
- sqlFile:
encoding: utf8
path: classpath:db/changelog/202505142037.sql
- changeSet:
id: 202505151450
author: hrz
changes:
- sqlFile:
encoding: utf8
path: classpath:db/changelog/202505151450.sql