diff --git a/web/hooks/useCreateNewThread.ts b/web/hooks/useCreateNewThread.ts index 9291577a0d..126fa1a940 100644 --- a/web/hooks/useCreateNewThread.ts +++ b/web/hooks/useCreateNewThread.ts @@ -98,7 +98,7 @@ export const useCreateNewThread = () => { // Use ctx length by default const overriddenParameters = { max_tokens: !isLocalEngine(defaultModel?.engine) - ? (defaultModel?.parameters.token_limit ?? 8192) + ? (defaultModel?.parameters.max_tokens ?? 8192) : defaultContextLength, }