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

Error generating code. #412

Open
xcc19960111 opened this issue Oct 14, 2024 · 4 comments
Open

Error generating code. #412

xcc19960111 opened this issue Oct 14, 2024 · 4 comments

Comments

@xcc19960111
Copy link

File "D:\Users\xucha\Desktop\screenshot-to-code-main\venv\Lib\site-packages\openai_base_client.py", line 1532, in _request
raise self._make_status_error_from_response(err.response) from None
openai.NotFoundError: Error code: 404 - {'error': {'message': 'The model gpt-4o-2024-05-13 does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}}
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "D:\Users\xucha\Desktop\screenshot-to-code-main\venv\Lib\site-packages\uvicorn\protocols\websockets\websockets_impl.py", line 250, in run_asgi
result = await self.app(self.scope, self.asgi_receive, self.asgi_send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Users\xucha\Desktop\screenshot-to-code-main\venv\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 84, in call
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Users\xucha\Desktop\screenshot-to-code-main\venv\Lib\site-packages\fastapi\applications.py", line 276, in call
await super().call(scope, receive, send)

@xcc19960111
Copy link
Author

what's happened

@xcc19960111
Copy link
Author

'The model gpt-4o-2024-05-13 does not exist or you do not have access to it.

@abi
Copy link
Owner

abi commented Oct 14, 2024

Please see the FAQ for how to set up your OpenAi keys. You probably need to buy a little bit of credit.

@xcc19960111
Copy link
Author

Which model can I use for free?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants