Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How can i use GPT-4 key and proxy address to use camel multi-agent in China? #8

Open
3 tasks done
kakaxi-liu opened this issue Jul 22, 2024 · 0 comments
Open
3 tasks done
Assignees
Labels
question Further information is requested

Comments

@kakaxi-liu
Copy link

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'}}

@kakaxi-liu kakaxi-liu added the question Further information is requested label Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants