@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Fixed OpenRouter routing preferences on OpenAI-compatible custom providers to send `compat.openRouterRouting` even when `baseUrl` does not point directly at OpenRouter ([#5347](https://github.com/earendil-works/pi/issues/5347)).
|
||||||
|
|
||||||
## [0.78.1] - 2026-06-04
|
## [0.78.1] - 2026-06-04
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -610,7 +610,7 @@ function buildParams(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// OpenRouter provider routing preferences
|
// OpenRouter provider routing preferences
|
||||||
if (model.baseUrl.includes("openrouter.ai") && model.compat?.openRouterRouting) {
|
if (model.compat?.openRouterRouting) {
|
||||||
(params as any).provider = model.compat.openRouterRouting;
|
(params as any).provider = model.compat.openRouterRouting;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -403,7 +403,7 @@ export interface OpenAICompletionsCompat {
|
|||||||
| "qwen-chat-template"
|
| "qwen-chat-template"
|
||||||
| "string-thinking"
|
| "string-thinking"
|
||||||
| "ant-ling";
|
| "ant-ling";
|
||||||
/** OpenRouter-specific routing preferences. Only used when baseUrl points to OpenRouter. */
|
/** OpenRouter-compatible routing preferences sent as the `provider` request field. */
|
||||||
openRouterRouting?: OpenRouterRouting;
|
openRouterRouting?: OpenRouterRouting;
|
||||||
/** Vercel AI Gateway routing preferences. Only used when baseUrl points to Vercel AI Gateway. */
|
/** Vercel AI Gateway routing preferences. Only used when baseUrl points to Vercel AI Gateway. */
|
||||||
vercelGatewayRouting?: VercelGatewayRouting;
|
vercelGatewayRouting?: VercelGatewayRouting;
|
||||||
|
|||||||
Reference in New Issue
Block a user