Skip to content

Commit da3c945

Browse files
committed
refactor: model
1 parent c27995c commit da3c945

File tree

1 file changed

+3
-2
lines changed
  • apps/models_provider/impl/aliyun_bai_lian_model_provider/model

1 file changed

+3
-2
lines changed

apps/models_provider/impl/aliyun_bai_lian_model_provider/model/llm.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ def is_cache_model():
1414
@staticmethod
1515
def new_instance(model_type, model_name, model_credential: Dict[str, object], **model_kwargs):
1616
optional_params = MaxKBBaseModel.filter_optional_params(model_kwargs)
17-
if 'qwen-omni-turbo' in model_name or 'qwq' in model_name:
18-
optional_params['streaming'] = True
17+
# if 'qwen-omni-turbo' in model_name or 'qwq' in model_name:
18+
# optional_params['streaming'] = True
1919
return BaiLianChatModel(
2020
model=model_name,
2121
openai_api_base=model_credential.get('api_base'),
2222
openai_api_key=model_credential.get('api_key'),
23+
streaming=True,
2324
extra_body=optional_params
2425
)

0 commit comments

Comments
 (0)