Skip to content

Commit

Permalink
Merge pull request #4397 from janhq/fix/max_tokens-automatically-reve…
Browse files Browse the repository at this point in the history
…rt-when-users-create-new-thread

fix: max_tokens revert back to 8192 automatically when creating a new thread
  • Loading branch information
louis-jan authored Jan 3, 2025
2 parents 786d528 + 4b6eceb commit f69c31b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/hooks/useCreateNewThread.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down

0 comments on commit f69c31b

Please sign in to comment.