genesis error #106
Unanswered
nathanstreger
asked this question in
Q&A
Replies: 2 comments
-
Nevermind (sort of). A much more likely answer is that I'm using a free account and don't have access to that model. Could a parameter be added to the genesis command to pass in the model to use? |
Beta Was this translation helpful? Give feedback.
0 replies
-
i had same error. put credit to your account .. then generate new API key (old key before payment wont work) ... then you are good to go |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using the genesis command outputs the error "The requested model 'gpt-4-turbo-preview' does not exist." Am I doing something wrong or did openAI update their stuff and now the source code for the genesis command needs to be updated?
All I've done so far is to set my OpenAI API key in my system's environment variables. Here's the full error:
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Python312\Scripts\agency-swarm.exe_main.py", line 7, in
File "C:\Python312\Lib\site-packages\agency_swarm\cli.py", line 50, in main
agency = GenesisAgency(with_browsing=args.with_browsing)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\site-packages\agency_swarm\agency\genesis\GenesisAgency.py", line 53, in init
super().init(**kwargs)
File "C:\Python312\Lib\site-packages\agency_swarm\agency\agency.py", line 91, in init
self._init_agents()
File "C:\Python312\Lib\site-packages\agency_swarm\agency\agency.py", line 558, in _init_agents
agent.init_oai()
File "C:\Python312\Lib\site-packages\agency_swarm\agents\agent.py", line 164, in init_oai
self.assistant = self.client.beta.assistants.create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\site-packages\openai\resources\beta\assistants\assistants.py", line 112, in create
return self._post(
^^^^^^^^^^^
File "C:\Python312\Lib\site-packages\openai_base_client.py", line 1208, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\site-packages\openai_base_client.py", line 897, in request
return self._request(
^^^^^^^^^^^^^^
File "C:\Python312\Lib\site-packages\openai_base_client.py", line 988, in _request
raise self._make_status_error_from_response(err.response) from None
openai.BadRequestError: Error code: 400 - {'error': {'message': "The requested model 'gpt-4-turbo-preview' does not exist.", 'type': 'invalid_request_error', 'param': 'model', 'code': 'model_not_found'}}
Beta Was this translation helpful? Give feedback.
All reactions