mirror of
https://github.com/camel-ai/owl.git
synced 2026-03-22 14:07:17 +08:00
Update run_openai_compatiable_model.py
This commit is contained in:
@@ -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},
|
||||
|
||||
Reference in New Issue
Block a user