Sun Tao
commited on
Commit
·
8d64f14
1
Parent(s):
22fd20f
Update run_openai_compatiable_model.py
Browse files
owl/run_openai_compatiable_model.py
CHANGED
@@ -44,7 +44,7 @@ def construct_society(question: str) -> OwlRolePlaying:
|
|
44 |
),
|
45 |
"web": ModelFactory.create(
|
46 |
model_platform=ModelPlatformType.OPENAI_COMPATIBLE_MODEL,
|
47 |
-
model_type="qwen-max",
|
48 |
api_key=os.getenv("QWEN_API_KEY"),
|
49 |
url="https://dashscope.aliyuncs.com/compatible-mode/v1",
|
50 |
model_config_dict={"temperature": 0.4, "max_tokens": 4096},
|
@@ -58,7 +58,7 @@ def construct_society(question: str) -> OwlRolePlaying:
|
|
58 |
),
|
59 |
"image": ModelFactory.create(
|
60 |
model_platform=ModelPlatformType.OPENAI_COMPATIBLE_MODEL,
|
61 |
-
model_type="qwen-max",
|
62 |
api_key=os.getenv("QWEN_API_KEY"),
|
63 |
url="https://dashscope.aliyuncs.com/compatible-mode/v1",
|
64 |
model_config_dict={"temperature": 0.4, "max_tokens": 4096},
|
|
|
44 |
),
|
45 |
"web": ModelFactory.create(
|
46 |
model_platform=ModelPlatformType.OPENAI_COMPATIBLE_MODEL,
|
47 |
+
model_type="qwen-vl-max",
|
48 |
api_key=os.getenv("QWEN_API_KEY"),
|
49 |
url="https://dashscope.aliyuncs.com/compatible-mode/v1",
|
50 |
model_config_dict={"temperature": 0.4, "max_tokens": 4096},
|
|
|
58 |
),
|
59 |
"image": ModelFactory.create(
|
60 |
model_platform=ModelPlatformType.OPENAI_COMPATIBLE_MODEL,
|
61 |
+
model_type="qwen-vl-max",
|
62 |
api_key=os.getenv("QWEN_API_KEY"),
|
63 |
url="https://dashscope.aliyuncs.com/compatible-mode/v1",
|
64 |
model_config_dict={"temperature": 0.4, "max_tokens": 4096},
|