You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have GPT-4 key and proxy address, and I set os.environ["OPENAI_API_BASE_URL"] as my proxy address, but I always met http error when I use it.
ERROR:
Traceback (most recent call last):
File "/home/jinchuan/.conda/envs/camel_multi/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 589, in _run_script
exec(code, module.dict)
File "/home/jinchuan/git_project/multi-agent-streamlit-ui/streamlit_app.py", line 153, in
main(
File "/home/jinchuan/git_project/multi-agent-streamlit-ui/apps/streamlit_ui/multi_agent_communication_ui.py", line 47, in main
role_descriptions_dict = multi_agent.run_role_with_description(
File "/home/jinchuan/.conda/envs/camel_multi/lib/python3.10/site-packages/camel/agents/multi_agent.py", line 171, in run_role_with_description
response = self.step(input_message=role_assignment_generation_msg)
File "/home/jinchuan/.conda/envs/camel_multi/lib/python3.10/site-packages/camel/agents/chat_agent.py", line 314, in step
response = self.model_backend.run(openai_messages)
File "/home/jinchuan/.conda/envs/camel_multi/lib/python3.10/site-packages/camel/utils/commons.py", line 80, in wrapper
return func(self, *args, **kwargs)
File "/home/jinchuan/.conda/envs/camel_multi/lib/python3.10/site-packages/camel/models/openai_model.py", line 73, in run
response = self._client.chat.completions.create(
File "/home/jinchuan/.conda/envs/camel_multi/lib/python3.10/site-packages/openai/_utils/_utils.py", line 277, in wrapper
return func(*args, **kwargs)
File "/home/jinchuan/.conda/envs/camel_multi/lib/python3.10/site-packages/openai/resources/chat/completions.py", line 643, in create
return self._post(
File "/home/jinchuan/.conda/envs/camel_multi/lib/python3.10/site-packages/openai/_base_client.py", line 1264, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
File "/home/jinchuan/.conda/envs/camel_multi/lib/python3.10/site-packages/openai/_base_client.py", line 942, in request
return self._request(
File "/home/jinchuan/.conda/envs/camel_multi/lib/python3.10/site-packages/openai/_base_client.py", line 1044, in _request
raise self._make_status_error_from_response(err.response) from None
openai.NotFoundError: Error code: 404 - {'error': {'code': '404', 'message': 'Resource not found'}}
The text was updated successfully, but these errors were encountered:
Required prerequisites
Questions
I have GPT-4 key and proxy address, and I set os.environ["OPENAI_API_BASE_URL"] as my proxy address, but I always met http error when I use it.
ERROR:
Traceback (most recent call last):
File "/home/jinchuan/.conda/envs/camel_multi/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 589, in _run_script
exec(code, module.dict)
File "/home/jinchuan/git_project/multi-agent-streamlit-ui/streamlit_app.py", line 153, in
main(
File "/home/jinchuan/git_project/multi-agent-streamlit-ui/apps/streamlit_ui/multi_agent_communication_ui.py", line 47, in main
role_descriptions_dict = multi_agent.run_role_with_description(
File "/home/jinchuan/.conda/envs/camel_multi/lib/python3.10/site-packages/camel/agents/multi_agent.py", line 171, in run_role_with_description
response = self.step(input_message=role_assignment_generation_msg)
File "/home/jinchuan/.conda/envs/camel_multi/lib/python3.10/site-packages/camel/agents/chat_agent.py", line 314, in step
response = self.model_backend.run(openai_messages)
File "/home/jinchuan/.conda/envs/camel_multi/lib/python3.10/site-packages/camel/utils/commons.py", line 80, in wrapper
return func(self, *args, **kwargs)
File "/home/jinchuan/.conda/envs/camel_multi/lib/python3.10/site-packages/camel/models/openai_model.py", line 73, in run
response = self._client.chat.completions.create(
File "/home/jinchuan/.conda/envs/camel_multi/lib/python3.10/site-packages/openai/_utils/_utils.py", line 277, in wrapper
return func(*args, **kwargs)
File "/home/jinchuan/.conda/envs/camel_multi/lib/python3.10/site-packages/openai/resources/chat/completions.py", line 643, in create
return self._post(
File "/home/jinchuan/.conda/envs/camel_multi/lib/python3.10/site-packages/openai/_base_client.py", line 1264, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
File "/home/jinchuan/.conda/envs/camel_multi/lib/python3.10/site-packages/openai/_base_client.py", line 942, in request
return self._request(
File "/home/jinchuan/.conda/envs/camel_multi/lib/python3.10/site-packages/openai/_base_client.py", line 1044, in _request
raise self._make_status_error_from_response(err.response) from None
openai.NotFoundError: Error code: 404 - {'error': {'code': '404', 'message': 'Resource not found'}}
The text was updated successfully, but these errors were encountered: