mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 19:38:46 -05:00
[PR #18436] [CLOSED] fix: update max_tokens input minimum from -2 to 1 #47842
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/18436
Author: @acwoo97
Created: 10/20/2025
Status: ❌ Closed
Base:
dev← Head:feat/max-token📝 Commits (1)
8c7f205fix: update max_tokens input minimum from -2 to 1📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte(+2 -2)📄 Description
fix(ui): update
max_tokensinput minimum from -2 to 1Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.fixprefix.Changelog Entry
Description
max_tokensinput component to prevent invalid negative values.-2, which is not supported by any LLM model.1to ensure consistency and proper validation across the UI.Added
Changed
minattribute of themax_tokensrange and number input from-2to1.Deprecated
Removed
Fixed
max_tokensvalues.Security
Breaking Changes
Additional Information
Screenshots or Videos
(Optional — include if you want)
Before: slider allowed
-2After: minimum value starts at
1Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.