screenshot-to-code icon indicating copy to clipboard operation
screenshot-to-code copied to clipboard

Error generating code.

Open xcc19960111 opened this issue 1 year ago • 5 comments

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 avatar Oct 14 '24 10:10 xcc19960111

what's happened

xcc19960111 avatar Oct 14 '24 10:10 xcc19960111

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

xcc19960111 avatar Oct 14 '24 10:10 xcc19960111

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

abi avatar Oct 14 '24 11:10 abi

Which model can I use for free?

xcc19960111 avatar Oct 15 '24 06:10 xcc19960111

没有外国卡真难受

pagnkelly avatar Dec 25 '24 12:12 pagnkelly