Update main.py

this is left paras model
This commit is contained in:
ZHIQUAN 2026-05-14 13:40:59 +08:00 • committed by GitHub
parent 31d05147fb
commit e06c197a0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6274,7 +6274,8 @@ async def aadapter_completion(
if isinstance(response, CustomStreamWrapper):
translated_response = (
translation_obj.translate_completion_output_params_streaming(
completion_stream=response
completion_stream=response,
model=kwargs.get("model", "")
)
)
@ -6325,7 +6326,8 @@ def adapter_completion(
elif isinstance(response, CustomStreamWrapper) or inspect.isgenerator(response):
translated_response = (
translation_obj.translate_completion_output_params_streaming(
completion_stream=response
completion_stream=response,
model=kwargs.get("model", "")
)
)