VRSEN / agency-swarm-lab

MIT License
522 stars 238 forks source link

"The requested model 'gpt-4-turbo-preview' does not exist." #5

Open pipe878 opened 5 months ago

pipe878 commented 5 months ago

Hi Everyone, im kind of new with all of this, after following the instructions for install, i get the following error when trying to run agency.py for WebDevCrafters

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

can someone tell me how to change the model or so? thanks!

7underlines commented 4 months ago

I guess the model got renamed by OpenAi because it's no longer in preview. They still list it on their models page, but that might be outdated. https://platform.openai.com/docs/models/continuous-model-upgrades

Doing a quick search on the repository reveals that the preview model is currently used in 2 files. You can try to change it there. https://github.com/search?q=repo%3AVRSEN%2Fagency-swarm-lab+gpt-4-turbo-preview&type=code

VRSEN commented 4 months ago

Typically this occurs if your OpenAI account is not on a paid plan. Please add a billing method, refill your balance a bit and try again.

BuckRogers01 commented 4 months ago

That was my issue, had to put money into OpenAi so my api key would work, it's a different account than if you use ChatGpt. After that it kinda worked.