feat: update getSpeechToTextAPI to include id parameter

--bug=1058746 --user=刘瑞斌 【应用】应用语音输入开启自动发送,对话页面发送语音报错 https://www.tapd.cn/62980211/s/1731337
This commit is contained in:
CaptainB 2025-07-15 11:12:33 +08:00
parent 5a8c7a0e00
commit ee8412f34d

View File

@ -651,7 +651,7 @@ class RecorderManage {
}
const getSpeechToTextAPI = () => {
if (props.type === 'ai-chat') {
return (data?: any, loading?: Ref<boolean>) => {
return (id?: any, data?: any, loading?: Ref<boolean>) => {
return chatAPI.speechToText(data, loading)
}
} else {