Error generating code.
- 主要語言
- Python
- 星號
- 78.7k
- 分支
- 9.6k
- PR 合併指標
- 30 天內沒有已合併 PR
描述
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)
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
The error indicates the model 'gpt-4o-2024-05-13' is not accessible. Check the backend code where the OpenAI client is configured, likely in a file handling API calls. Look for the model name string and verify it's correct and available in your OpenAI account. Running the application locally should reproduce the error, and updating the model name to a valid one (like 'gpt-4o') should fix it.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- ai, backend
- Issue 類型
- 缺陷
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 65/100