Skip to content

Commit a6533c0

Browse files
authored
feat: Support Alibaba Bailian supplier qwen3 model (#3020)
1 parent 704077d commit a6533c0

File tree

1 file changed

+5
-1
lines changed
  • apps/setting/models_provider/impl/aliyun_bai_lian_model_provider/credential

1 file changed

+5
-1
lines changed

apps/setting/models_provider/impl/aliyun_bai_lian_model_provider/credential/llm.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ def is_valid(self, model_type: str, model_name, model_credential: Dict[str, obje
4747
return False
4848
try:
4949
model = provider.get_model(model_type, model_name, model_credential, **model_params)
50-
model.invoke([HumanMessage(content=gettext('Hello'))])
50+
if model_params.get('stream'):
51+
for res in model.stream([HumanMessage(content=gettext('Hello'))]):
52+
pass
53+
else:
54+
model.invoke([HumanMessage(content=gettext('Hello'))])
5155
except Exception as e:
5256
traceback.print_exc()
5357
if isinstance(e, AppApiException):

0 commit comments

Comments
 (0)