diff --git a/front/lib/api/assistant/generation.ts b/front/lib/api/assistant/generation.ts index a79954f8dc9f..89daddb0ad33 100644 --- a/front/lib/api/assistant/generation.ts +++ b/front/lib/api/assistant/generation.ts @@ -334,7 +334,7 @@ export async function* runGeneration( let model = c.model; - const contextSize = getSupportedModelConfig(model).contextSize; + const contextSize = getSupportedModelConfig(c.model).contextSize; const MIN_GENERATION_TOKENS = 2048;