mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:12:51 +00:00
fix: VolcanicEngine stt error
--bug=1057449 --user=王孝刚 【模型】添加火山语音识别模型失败 https://www.tapd.cn/62980211/s/1718297
This commit is contained in:
parent
69e8537d9c
commit
44c318e8c8
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue