-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Description
BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1
When i change model from gpt-4o to qwen-plus, ChatDev 2.0 backend raise error below. How can i fix it? please give some help
Traceback (most recent call last):
File "F:\code\github\ChatDev\runtime\node\executor\agent_executor.py", line 112, in execute
response_obj = self._invoke_provider(
^^^^^^^^^^^^^^^^^^^^^^
File "F:\code\github\ChatDev\runtime\node\executor\agent_executor.py", line 284, in invoke_provider
response = self.execute_with_retry(node, retry_policy, call_provider)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\code\github\ChatDev\runtime\node\executor\agent_executor.py", line 347, in execute_with_retry
return retrier(func)
^^^^^^^^^^^^^
File "F:\code\github\ChatDev.venv\Lib\site-packages\tenacity_init.py", line 477, in call
do = self.iter(retry_state=retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\code\github\ChatDev.venv\Lib\site-packages\tenacity_init.py", line 378, in iter
result = action(retry_state)
^^^^^^^^^^^^^^^^^^^
File "F:\code\github\ChatDev.venv\Lib\site-packages\tenacity_init.py", line 420, in exc_check
raise retry_exc.reraise()
^^^^^^^^^^^^^^^^^^^
File "F:\code\github\ChatDev.venv\Lib\site-packages\tenacity_init.py", line 187, in reraise
raise self.last_attempt.result()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ProgramData\uv\python\cpython-3.12.12-windows-x86_64-none\Lib\concurrent\futures_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "D:\ProgramData\uv\python\cpython-3.12.12-windows-x86_64-none\Lib\concurrent\futures_base.py", line 401, in __get_result
raise self.exception
File "F:\code\github\ChatDev.venv\Lib\site-packages\tenacity_init.py", line 480, in call
result = fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "F:\code\github\ChatDev\runtime\node\executor\agent_executor.py", line 274, in _call_provider
return provider.call_model(
^^^^^^^^^^^^^^^^^^^^
File "F:\code\github\ChatDev\runtime\node\agent\providers\openai_provider.py", line 76, in call_model
response = client.responses.create(**request_payload)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\code\github\ChatDev.venv\Lib\site-packages\openai\resources\responses\responses.py", line 866, in create
return self._post(
^^^^^^^^^^^
File "F:\code\github\ChatDev.venv\Lib\site-packages\openai_base_client.py", line 1259, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\code\github\ChatDev.venv\Lib\site-packages\openai_base_client.py", line 1047, in request
raise self._make_status_error_from_response(err.response) from None
openai.NotFoundError: Error code: 404
ERROR:session_33bacb36-7b85-4488-bce4-348f5be95253:{"timestamp": "2026-01-08 10:08:29.250215+00:00", "log_type": "error", "level": "ERROR", "logger": "session_33bacb36-7b85-4488-bce4-348f5be95253", "message": "[Node: Data Analyst] Error calling model: Error code: 404", "correlation_id": null, "workflow_id": "session_33bacb36-7b85-4488-bce4-348f5be95253", "node_id": null, "event_type": null, "execution_path": ["Data Analyst"], "duration": null}