mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: qwq-plus only supported stream
This commit is contained in:
parent
0e29ce28cf
commit
f82ba3c4b8
|
|
@ -14,7 +14,7 @@ class BaiLianChatModel(MaxKBBaseModel, BaseChatOpenAI):
|
|||
@staticmethod
|
||||
def new_instance(model_type, model_name, model_credential: Dict[str, object], **model_kwargs):
|
||||
optional_params = MaxKBBaseModel.filter_optional_params(model_kwargs)
|
||||
if 'qwen-omni-turbo' in model_name:
|
||||
if 'qwen-omni-turbo' in model_name or 'qwq-plus' in model_name:
|
||||
optional_params['streaming'] = True
|
||||
return BaiLianChatModel(
|
||||
model=model_name,
|
||||
|
|
|
|||
Loading…
Reference in New Issue