mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-05 01:59:27 +00:00
* fix(openrouter): send image-only models to the Images API OpenRouter rejects models such as openai/gpt-image-2.6-sunburst on /chat/completions and asks for /api/v1/images. Those models now use the Images API request and response format for image generation and image edit. Every other model stays on chat completions. Fixes #55498 Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * refactor(openrouter): keep the Images API configs within the lint gates Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(openrouter): leave auto size and quality to the model and accept a chat completions api_base on the Images API Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(openrouter): read supported_endpoints from the cost map before the image-only name list * test(openrouter): annotate the Images API tests * test(openrouter): drop formatting-only changes to unrelated test files --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| chat | ||
| image_edit | ||
| image_generation | ||
| responses | ||
| __init__.py | ||
| test_openrouter_common_utils.py | ||
| test_openrouter_embedding_transformation.py | ||
| test_openrouter_provider_routing.py | ||