jan
jan copied to clipboard
fix: disable autocorrect in model search input
There's annoying behavior when entering model names in "Add model" modal in the Settings that corrects model id's to dictionary words like "gpt" → "got"
This fix disables autocorrect, autocomplete, and spell check in the model search input to prevent model IDs from being auto-corrected to unrelated words in the "Add new model" modal (Settings > Model providers)
Added the following attributes to the Input component in ModelCombobox.tsx:
autoComplete="off" - disables browser autocomplete
autoCorrect="off" - disables macOS autocorrect
autoCapitalize="off" - disables auto-capitalization
spellCheck={false} - disables spell checking
To test it:
- Open Settings → Model providers
- Click "Add new model" on any provider
- Type a model ID in the search field (e.g., "gpt" that often corrects to "got")
- Verify autocorrect doesn't interfere with the input
- Test on macOS to confirm autocorrect is disabled