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