From dbb72b40af836702030d609893df7c11ac4a145b Mon Sep 17 00:00:00 2001 From: Sun Tao <168447269+fengju0213@users.noreply.github.com> Date: Sun, 9 Mar 2025 14:27:58 +0800 Subject: [PATCH] Update run_openai_compatiable_model.py --- owl/run_openai_compatiable_model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/owl/run_openai_compatiable_model.py b/owl/run_openai_compatiable_model.py index b41f962..d145814 100644 --- a/owl/run_openai_compatiable_model.py +++ b/owl/run_openai_compatiable_model.py @@ -44,7 +44,7 @@ def construct_society(question: str) -> OwlRolePlaying: ), "web": ModelFactory.create( model_platform=ModelPlatformType.OPENAI_COMPATIBLE_MODEL, - model_type="qwen-max", + model_type="qwen-vl-max", api_key=os.getenv("QWEN_API_KEY"), url="https://dashscope.aliyuncs.com/compatible-mode/v1", model_config_dict={"temperature": 0.4, "max_tokens": 4096}, @@ -58,7 +58,7 @@ def construct_society(question: str) -> OwlRolePlaying: ), "image": ModelFactory.create( model_platform=ModelPlatformType.OPENAI_COMPATIBLE_MODEL, - model_type="qwen-max", + model_type="qwen-vl-max", api_key=os.getenv("QWEN_API_KEY"), url="https://dashscope.aliyuncs.com/compatible-mode/v1", model_config_dict={"temperature": 0.4, "max_tokens": 4096},