mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:12:51 +00:00
feat: update getSpeechToTextAPI to include id parameter
--bug=1058746 --user=刘瑞斌 【应用】应用语音输入开启自动发送,对话页面发送语音报错 https://www.tapd.cn/62980211/s/1731337
This commit is contained in:
parent
5a8c7a0e00
commit
ee8412f34d
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue