Skip to content

Forum in maintenance, we will back soon 🙂

Error running main....
 
Notifications
Clear all

Error running main.py when testing "Create Agent from Scratch"

5 Posts
2 Users
1 Reactions
118 Views
(@sylogh)
Posts: 5
Active Member
Topic starter
 

Hi, 

Do I need to use the paid version of chatgpt, gpt-4, so as to run main.py successfully?

I created my API Key in GPT-3.5. I tried testing your agent code on "How to create AI Agents from scratch with Python".  When I ran python main.py, I got the error excerpt below:
 
raise self._make_status_error_from_response(err.response) from None
openai.NotFoundError: Error code: 404 - {'error': {'message': 'The model `gpt-4` does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}}

When I changed the model in your code to gpt-3.5-turbo and ran python main.py, I got the error excerpt below:

raise self._make_status_error_from_response(err.response) from None
openai.RateLimitError: Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors .', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}}

 

Thank you

 

 

 
Posted : 07/01/2024 3:35 pm
SSAdvisor
(@ssadvisor)
Posts: 1139
Noble Member
 

@sylogh yes, you need to fund the use of the API. You don't need to purchase the monthly subscription.

Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack

 
Posted : 07/01/2024 5:56 pm
(@sylogh)
Posts: 5
Active Member
Topic starter
 

@ssadvisor , thank you!

So, I need gpt-4 to run the AI agent successfully.

Please, how do I fund the use of the API, without purchasing the monthly subscription?

 
Posted : 07/01/2024 8:42 pm
SSAdvisor
(@ssadvisor)
Posts: 1139
Noble Member
 

@sylogh https://platform.openai.com/settings/organization/billing/overview

Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack

 
Posted : 07/02/2024 12:59 pm
(@sylogh)
Posts: 5
Active Member
Topic starter
 

@ssadvisor Thank you!

 
Posted : 07/04/2024 7:48 am
Share: