mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 14:58:26 +00:00
fix: cover OpenRouter attribution headers
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user