fix: VolcanicEngine stt error

--bug=1057449 --user=王孝刚 【模型】添加火山语音识别模型失败 https://www.tapd.cn/62980211/s/1718297
This commit is contained in:
wxg0103 2025-06-25 14:28:19 +08:00
parent 69e8537d9c
commit 44c318e8c8

View File

@ -300,7 +300,7 @@ class VolcanicEngineSpeechToText(MaxKBBaseModel, BaseSpeechToText):
header = self.token_auth()
elif self.auth_method == "signature":
header = self.signature_auth(full_client_request)
async with websockets.connect(self.volcanic_api_url, extra_headers=header, max_size=1000000000,
async with websockets.connect(self.volcanic_api_url, additional_headers=header, max_size=1000000000,
ssl=ssl_context) as ws:
# 发送 full client request
await ws.send(full_client_request)