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