From 7cb420d8e65db91f6fdb4f9c828a05e9a2b06d1d Mon Sep 17 00:00:00 2001 From: diegosouzapw Date: Sat, 7 Mar 2026 10:05:20 -0300 Subject: [PATCH] =?UTF-8?q?feat(release):=20v2.0.8=20=E2=80=94=20custom=20?= =?UTF-8?q?image=20model=20handler=20resolution?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 17 +++++++++++++++++ package.json | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc865c6804..fd80cbd87e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 --- +## [2.0.8] — 2026-03-07 + +> ### 🐛 Bug Fix — Custom Image Model Handler Resolution + +### 🐛 Bug Fixes + +- **#238 — Custom image models still fail in handler layer** — v2.0.7 fixed the route-layer validation, but the handler (`handleImageGeneration()`) called `parseImageModel()` again internally, rejecting custom models a second time. Fix: handler now accepts an optional `resolvedProvider` parameter; when provided, it skips re-validation and routes custom models to the OpenAI-compatible handler with a synthetic config. PR #239 + +### 📁 Files Changed + +| File | Change | +| -------------------------------------------- | -------------------------------------------------------------------------------- | +| `open-sse/handlers/imageGeneration.ts` | Added `resolvedProvider` param + custom model fallback | +| `src/app/api/v1/images/generations/route.ts` | Tracks `isCustomModel`, passes `resolvedProvider`, credentials for custom models | + +--- + ## [2.0.7] — 2026-03-07 > ### 🐛 Bug Fixes — Custom Image Models + Codex OAuth Workspace Isolation diff --git a/package.json b/package.json index 96ab17cd29..cd4a665189 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "omniroute", - "version": "2.0.7", + "version": "2.0.8", "description": "Smart AI Router with auto fallback — route to FREE & cheap models, zero downtime. Works with Cursor, Cline, Claude Desktop, Codex, and any OpenAI-compatible tool.", "type": "module", "bin": {