fix: cover OpenRouter attribution headers

This commit is contained in:
Peter Steinberger
2026-02-01 19:30:33 +00:00
parent 74039fc0f1
commit 083ec9325e
3 changed files with 35 additions and 2 deletions

View File

@@ -108,7 +108,7 @@ function createStreamFnWithExtraParams(
function createOpenRouterHeadersWrapper(baseStreamFn: StreamFn | undefined): StreamFn {
const underlying = baseStreamFn ?? streamSimple;
return (model, context, options) =>
underlying(model as Model<Api>, context, {
underlying(model, context, {
...options,
headers: {
...OPENROUTER_APP_HEADERS,