Merge pull request #4397 from janhq/fix/max_tokens-automatically-revert-when-users-create-new-thread

fix: max_tokens revert back to 8192 automatically when creating a new thread
This commit is contained in:
Louis 2025-01-03 13:12:30 +07:00 committed by GitHub
commit f69c31be64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,
}