Commit 7b7de06
authored
🐛 fix: Stop guessing URL fields from key names in config form (#38)
The admin panel's text-field renderer was inferring URL-ness from a
substring match on the field key (`url`, `endpoint`). The `endpoint`
substring matched the modelSpec preset `endpoint` field — which is a
categorical enum like `openAI`, not a URL. Rendering it as
`<input type="url">` triggered browser autofill that swallowed
uppercase keystrokes, making `openAI` and other camel-cased endpoint
values impossible to type.
Removes the keyword heuristic outright. LibreChat's configSchema today
declares zero `.url()` validations, so no field in the form should be
rendered as `type="url"`. If the schema ever tags a field with `.url()`,
detection can be added at the schema-extraction layer at that point.
Linear: AI-8951 parent 8a44929 commit 7b7de06
1 file changed
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
363 | | - | |
364 | | - | |
365 | 363 | | |
366 | 364 | | |
367 | 365 | | |
| |||
392 | 390 | | |
393 | 391 | | |
394 | 392 | | |
395 | | - | |
396 | | - | |
| 393 | + | |
397 | 394 | | |
398 | 395 | | |
399 | 396 | | |
| |||
0 commit comments