Code: 404, HTTP Status: 404)

2026年06月16日 15:44 processing

错误信息

No endpoints found that support image input (Model Provider Error Code: 404, HTTP Status: 404)

AI 解决方案

🔍 错误分析

1. 🌐 错误翻译

原文:No endpoints found that support image input (Model Provider Error Code: 404, HTTP Status: 404)
译文:未找到支持图片输入的端点(模型提供商错误代码:404,HTTP状态码:404)

2. 🎯 原因分析

该错误表示当前使用的模型不支持图片输入功能,或API配置存在以下问题:

  • 模型选择错误:调用的模型不支持多模态(图片+文本)输入

  • 端点配置问题:API端点未正确配置图片处理能力

  • 模型提供商限制:所选模型提供商未开放图片输入功能

3. 💡 解决方案

✅ 方案一:更换支持图片的模型

# 使用支持视觉的模型(如GPT-4o、Claude 3.5 Sonnet等)
model = "gpt-4o"  # 支持图片输入
# 或
model = "claude-3-5-sonnet-20241022"  # 支持图片输入

✅ 方案二:检查API调用参数

```python

确保请求格式正确


response = client.chat.completions.create(
model="gpt-4o", # 必须是支持图片的模型
messages=[
{
"role": "user",
"content": [
{"type": "text", "text": "描述这张图片"},
{
"type": "image_url",
"image_url": {"url": "图片