Skip to content

Commit a447c8e

Browse files
committed
feat: BaiLian Image Model
1 parent 3303640 commit a447c8e

File tree

2 files changed

+2
-2
lines changed
  • apps/setting/models_provider/impl

2 files changed

+2
-2
lines changed

apps/setting/models_provider/impl/aliyun_bai_lian_model_provider/model/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ def new_instance(model_type, model_name, model_credential: Dict[str, object], **
1818
openai_api_base='https://dashscope.aliyuncs.com/compatible-mode/v1',
1919
# stream_options={"include_usage": True},
2020
streaming=True,
21-
model_kwargs=optional_params,
21+
**optional_params,
2222
)
2323
return chat_tong_yi

apps/setting/models_provider/impl/qwen_model_provider/model/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ def new_instance(model_type, model_name, model_credential: Dict[str, object], **
1818
openai_api_base='https://dashscope.aliyuncs.com/compatible-mode/v1',
1919
# stream_options={"include_usage": True},
2020
streaming=True,
21-
model_kwargs=optional_params,
21+
**optional_params,
2222
)
2323
return chat_tong_yi

0 commit comments

Comments
 (0)