CherryHQ/cherry-studio

[Discussion]: Preview: API endpoint appends 'chat/completions' causing image generation to fail

Geschlossen

#15.540 geöffnet am 01.06.2026

 (0 Kommentare) (1 Reaktion) (0 zugewiesene Personen)TypeScript (4.338 Forks)batch import
discussionhelp wanted

Repository-Metriken

Stars
 (45.688 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 3T 6h) (306 gemergte PRs in 30 T)

Beschreibung

Issue Checklist

  • I understand that issues are meant for feedback and problem-solving, not for venting, and I will provide as much detail as possible to help resolve the issue.
  • I have checked the pinned issues and searched through the existing open issues, closed issues, and discussions and did not find a similar suggestion.
  • I confirm that I am here to ask questions and discuss issues, not to report bugs or request features.

Platform

Windows

Version

v1.9.8

Your Question

I cannot use the image generation model, even though I have the corresponding model's API key, it still doesn't work. I found that the issue lies in the preview, where most models' API endpoints are automatically appended with "chat/completions", while images require adding "image/generations" after the API endpoint. Due to this automatically added suffix "chat/completions", I am unable to call the image model, while other language models work fine.

Context

No response

Additional Information

Priority

Low (Review when available)

Contributor Guide