mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-02 07:10:23 +00:00
test: simplify embedded extra params model ids
This commit is contained in:
@@ -32,7 +32,7 @@ function createTestXaiFastModeWrapper(
|
||||
)(model, context, options);
|
||||
}
|
||||
|
||||
const fastModelId = XAI_FAST_MODEL_IDS.get(String(model.id).trim());
|
||||
const fastModelId = XAI_FAST_MODEL_IDS.get(model.id.trim());
|
||||
return (
|
||||
baseStreamFn ??
|
||||
(() => {
|
||||
@@ -334,7 +334,7 @@ describe("applyExtraParamsToAgent", () => {
|
||||
}): string {
|
||||
let resolvedModelId = params.model.id;
|
||||
const baseStreamFn: StreamFn = (model) => {
|
||||
resolvedModelId = String(model.id ?? "");
|
||||
resolvedModelId = model.id;
|
||||
return {} as ReturnType<StreamFn>;
|
||||
};
|
||||
const agent = { streamFn: baseStreamFn };
|
||||
|
||||
Reference in New Issue
Block a user