Wendong-Fan commited on
Commit
be88da8
·
1 Parent(s): 6404ebc

update max_token setting in example

Browse files
examples/run_openai_compatiable_model.py CHANGED
@@ -56,35 +56,35 @@ def construct_society(question: str) -> RolePlaying:
56
  model_type="qwen-max",
57
  api_key=os.getenv("QWEN_API_KEY"),
58
  url="https://dashscope.aliyuncs.com/compatible-mode/v1",
59
- model_config_dict={"temperature": 0.4, "max_tokens": 4096},
60
  ),
61
  "assistant": ModelFactory.create(
62
  model_platform=ModelPlatformType.OPENAI_COMPATIBLE_MODEL,
63
  model_type="qwen-max",
64
  api_key=os.getenv("QWEN_API_KEY"),
65
  url="https://dashscope.aliyuncs.com/compatible-mode/v1",
66
- model_config_dict={"temperature": 0.4, "max_tokens": 4096},
67
  ),
68
  "browsing": ModelFactory.create(
69
  model_platform=ModelPlatformType.OPENAI_COMPATIBLE_MODEL,
70
  model_type="qwen-vl-max",
71
  api_key=os.getenv("QWEN_API_KEY"),
72
  url="https://dashscope.aliyuncs.com/compatible-mode/v1",
73
- model_config_dict={"temperature": 0.4, "max_tokens": 4096},
74
  ),
75
  "planning": ModelFactory.create(
76
  model_platform=ModelPlatformType.OPENAI_COMPATIBLE_MODEL,
77
  model_type="qwen-max",
78
  api_key=os.getenv("QWEN_API_KEY"),
79
  url="https://dashscope.aliyuncs.com/compatible-mode/v1",
80
- model_config_dict={"temperature": 0.4, "max_tokens": 4096},
81
  ),
82
  "image": ModelFactory.create(
83
  model_platform=ModelPlatformType.OPENAI_COMPATIBLE_MODEL,
84
  model_type="qwen-vl-max",
85
  api_key=os.getenv("QWEN_API_KEY"),
86
  url="https://dashscope.aliyuncs.com/compatible-mode/v1",
87
- model_config_dict={"temperature": 0.4, "max_tokens": 4096},
88
  ),
89
  }
90
 
 
56
  model_type="qwen-max",
57
  api_key=os.getenv("QWEN_API_KEY"),
58
  url="https://dashscope.aliyuncs.com/compatible-mode/v1",
59
+ model_config_dict={"temperature": 0.4, "max_tokens": 128000},
60
  ),
61
  "assistant": ModelFactory.create(
62
  model_platform=ModelPlatformType.OPENAI_COMPATIBLE_MODEL,
63
  model_type="qwen-max",
64
  api_key=os.getenv("QWEN_API_KEY"),
65
  url="https://dashscope.aliyuncs.com/compatible-mode/v1",
66
+ model_config_dict={"temperature": 0.4, "max_tokens": 128000},
67
  ),
68
  "browsing": ModelFactory.create(
69
  model_platform=ModelPlatformType.OPENAI_COMPATIBLE_MODEL,
70
  model_type="qwen-vl-max",
71
  api_key=os.getenv("QWEN_API_KEY"),
72
  url="https://dashscope.aliyuncs.com/compatible-mode/v1",
73
+ model_config_dict={"temperature": 0.4, "max_tokens": 128000},
74
  ),
75
  "planning": ModelFactory.create(
76
  model_platform=ModelPlatformType.OPENAI_COMPATIBLE_MODEL,
77
  model_type="qwen-max",
78
  api_key=os.getenv("QWEN_API_KEY"),
79
  url="https://dashscope.aliyuncs.com/compatible-mode/v1",
80
+ model_config_dict={"temperature": 0.4, "max_tokens": 128000},
81
  ),
82
  "image": ModelFactory.create(
83
  model_platform=ModelPlatformType.OPENAI_COMPATIBLE_MODEL,
84
  model_type="qwen-vl-max",
85
  api_key=os.getenv("QWEN_API_KEY"),
86
  url="https://dashscope.aliyuncs.com/compatible-mode/v1",
87
+ model_config_dict={"temperature": 0.4, "max_tokens": 128000},
88
  ),
89
  }
90