Skip to content

Commit

Permalink
fix: max_tokens revert back to 8192 automatically when creating a new…
Browse files Browse the repository at this point in the history
… thread
  • Loading branch information
louis-jan committed Jan 3, 2025
1 parent 538a6bf commit 4b6eceb
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 4b6eceb

Please sign in to comment.