Skip to content

Commit 2f90522

Browse files
committed
fix: VolcanicEngine tts error
1 parent 9f684da commit 2f90522

File tree

1 file changed

+1
-1
lines changed
  • apps/models_provider/impl/volcanic_engine_model_provider/model

1 file changed

+1
-1
lines changed

apps/models_provider/impl/volcanic_engine_model_provider/model/tts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ async def submit(self, request_json, text):
113113
submit_request_json["request"]["operation"] = "submit"
114114
header = {"Authorization": f"Bearer; {self.volcanic_token}"}
115115
result = b''
116-
async with websockets.connect(self.volcanic_api_url, extra_headers=header, ping_interval=None,
116+
async with websockets.connect(self.volcanic_api_url, additional_headers=header, ping_interval=None,
117117
ssl=ssl_context) as ws:
118118
lines = [text[i:i + 200] for i in range(0, len(text), 200)]
119119
for line in lines:

0 commit comments

Comments
 (0)