Skip to content

[Bug]: grok图片编辑 错误:图片编辑仅支持 application/json #579

Description

@renhui801

Affected area

Frontend / UI

Version or commit

ghcr.io/deeix-ai/deeix-chat:latest

Environment

{
  "error": "模型请求失败(HTTP 415)\n错误:图片编辑仅支持 application/json",
  "upstream_debug": {
    "request": {
      "method": "POST",
      "path": "/v1/images/edits",
      "body": "{\"image_count\":1,\"mask\":false,\"model\":\"grok-imagine-image-quality\",\"prompt\":\"换成白色\"}",
      "bodyBytes": 91
    },
    "response": {
      "statusCode": 415,
      "body": "{\"error\":{\"code\":\"invalid_request\",\"message\":\"图片编辑仅支持 application/json\",\"param\":null,\"type\":\"invalid_request_error\"}}",
      "bodyBytes": 131
    }
  }
}
Image

Reproduction steps

Image

Expected behavior

生成图片

Actual behavior

发送错误

Logs, screenshots, or request samples

No response

Configuration and deployment context

No response

Pre-submit checklist

  • I searched existing issues and pull requests.
  • I removed secrets, tokens, credentials, and personal data from this report.
  • This is not a security vulnerability report.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions