mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 08:07:40 +00:00
chore: migrate to oxlint and oxfmt
Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
This commit is contained in:
@@ -84,9 +84,7 @@ function createStreamFnWithExtraParams(
|
||||
return undefined;
|
||||
}
|
||||
|
||||
log.debug(
|
||||
`creating streamFn wrapper with params: ${JSON.stringify(streamParams)}`,
|
||||
);
|
||||
log.debug(`creating streamFn wrapper with params: ${JSON.stringify(streamParams)}`);
|
||||
|
||||
const underlying = baseStreamFn ?? streamSimple;
|
||||
const wrappedStreamFn: StreamFn = (model, context, options) =>
|
||||
@@ -116,15 +114,10 @@ export function applyExtraParamsToAgent(
|
||||
modelId,
|
||||
thinkLevel,
|
||||
});
|
||||
const wrappedStreamFn = createStreamFnWithExtraParams(
|
||||
agent.streamFn,
|
||||
extraParams,
|
||||
);
|
||||
const wrappedStreamFn = createStreamFnWithExtraParams(agent.streamFn, extraParams);
|
||||
|
||||
if (wrappedStreamFn) {
|
||||
log.debug(
|
||||
`applying extraParams to agent streamFn for ${provider}/${modelId}`,
|
||||
);
|
||||
log.debug(`applying extraParams to agent streamFn for ${provider}/${modelId}`);
|
||||
agent.streamFn = wrappedStreamFn;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user