mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-07-03 12:27:41 +08:00
Co-authored-by: jidan745le <420511176@qq.com> Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: SuYao <sy20010504@gmail.com> Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Co-authored-by: fullex <106392080+0xfullex@users.noreply.github.com> Signed-off-by: jidan745le <420511176@qq.com> Signed-off-by: suyao <sy20010504@gmail.com>
806 B
806 B
@cherrystudio/ai-core, @cherrystudio/ai-sdk-provider
| @cherrystudio/ai-core | @cherrystudio/ai-sdk-provider |
|---|---|
| patch | patch |
Wire the v2 paintings image-generation path through patched AI SDK image models:
- Activate the
ai@6.0.143patch (adds theexperimental_downloadoption togenerateImage) so HTTP(S) image outputs are classified and downloaded by the SDK while data-URL outputs pass through untouched. - Extend the
@ai-sdk/openai-compatiblepatch to supporturl-field image responses and skip theresponse_formatparameter forgpt-image-*models. - Extend the
@ai-sdk/googlepatch with model-path /isGeminiModelprefix handling for Gemini/Imagen image models.
These are targeted shims for the OpenAI-compatible / Google image gateways used by the painting providers; non-image OpenAI-compatible calls are unaffected.