Report === --- User-Friendly Information --- Message: 自定义模型 custom-local:gpt-6-a...
错误信息
=== Error Report ===
--- User-Friendly Information ---
Message: 自定义模型 custom-local:gpt-6-astra 错误,请切换模型或重试。
--- Technical Details ---
Error Code: 404
Request ID: 5e792d6ff81644a48f21ea89ff2f2200
Trace ID: 5e792d6ff81644a48f21ea89ff2f2200
Timestamp: 2026/09/08 15:14:00 (UTC+8)
Server Detail: {"code":-32603,"message":"Internal error","data":{"message":"Invalid URL (POST /v1/responses/chat/completions)","type":"invalid_request_error","param":"","code":0,"details":"404 Invalid URL (POST /v1/responses/chat/completions) (2fccbcf078304e3091f670cb9ff9b344/91863208-0ff0-48c5-ac3d-fca5c87bc953)","statusCode":404,"category":"internal"}}
App Version: 5.5.3
User ID: 94e5c5c4-e44f-411d-b6ce-ceb01880297f
AI 解决方案
🔍 错误分析
1. 🌐 错误翻译
原文:Invalid URL (POST /v1/responses/chat/completions)
译文:无效的URL (POST /v1/responses/chat/completions)
2. 🎯 原因分析
/v1/responses/chat/completions 不存在,返回404错误custom-local:gpt-6-astra,但请求的API路径不符合该模型或平台的接口规范3. 💡 解决方案
# 修正API请求路径,根据平台标准接口调整
# 将错误的路径改为正确的API端点
# 假设平台标准聊天接口为 /v1/chat/completions
# 原错误请求路径:
POST /v1/responses/chat/completions
# 修正后请求路径:
POST /v1/chat/completions
或者根据平台接口文档,确认自定义模型的正确端点,例如:
# 如果自定义模型有特定端点,调整为对应路径
# 例如:
POST /v1/models/custom-local:gpt-6-astra/chat/completions
4. 🛡️ 预防措施
/v1/ 根路径获取可用接口列表,验证目标路径是否存在