I had asked for help on trying to get my hierarchical ai newsletter from Brandon's video up and running. I did not understand all the error message but it seems to come down to my connection to openai.
When I use OpenAIGPT4 = ChatOpenAI(model = "gpt-4") in the program, I get this message at the end of a long error string:
File "/Users/terrybyrd/Library/Caches/pypoetry/virtualenvs/ai-newsletter2-Qzdo-5fg-py3.12/lib/python3.12/site-packages/openai/_base_client.py", line 1020, in _request 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'}}
Whe I use OpenAIGPT4 = ChatOpenAI(model="gpt-3.5-turbo", I get this error at the end of the error string:
File "/Users/terrybyrd/Library/Caches/pypoetry/virtualenvs/ai-newsletter2-Qzdo-5fg-py3.12/lib/python3.12/site-packages/openai/_base_client.py", line 1020, in _request 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'}} I have more than enough to satisfy this request in my OpenAI account ($18.00) and none of it seems to be used when I run this crew. There could be some other problems with the program but I suspect all of the other problems start with this failure. Any thoughts on this?