Update run_openai_compatiable_model.py (#99)

This commit is contained in:
Wendong-Fan
2025-03-09 16:59:15 +08:00
committed by GitHub

View File

@@ -44,7 +44,7 @@ def construct_society(question: str) -> OwlRolePlaying:
), ),
"web": ModelFactory.create( "web": ModelFactory.create(
model_platform=ModelPlatformType.OPENAI_COMPATIBLE_MODEL, model_platform=ModelPlatformType.OPENAI_COMPATIBLE_MODEL,
model_type="qwen-max", model_type="qwen-vl-max",
api_key=os.getenv("QWEN_API_KEY"), api_key=os.getenv("QWEN_API_KEY"),
url="https://dashscope.aliyuncs.com/compatible-mode/v1", url="https://dashscope.aliyuncs.com/compatible-mode/v1",
model_config_dict={"temperature": 0.4, "max_tokens": 4096}, model_config_dict={"temperature": 0.4, "max_tokens": 4096},
@@ -58,7 +58,7 @@ def construct_society(question: str) -> OwlRolePlaying:
), ),
"image": ModelFactory.create( "image": ModelFactory.create(
model_platform=ModelPlatformType.OPENAI_COMPATIBLE_MODEL, model_platform=ModelPlatformType.OPENAI_COMPATIBLE_MODEL,
model_type="qwen-max", model_type="qwen-vl-max",
api_key=os.getenv("QWEN_API_KEY"), api_key=os.getenv("QWEN_API_KEY"),
url="https://dashscope.aliyuncs.com/compatible-mode/v1", url="https://dashscope.aliyuncs.com/compatible-mode/v1",
model_config_dict={"temperature": 0.4, "max_tokens": 4096}, model_config_dict={"temperature": 0.4, "max_tokens": 4096},