Repository navigation
Conversation
Author
|
CI shows I pre-ran the equivalent checks locally at this exact head (
Happy to adjust anything if you'd rather see a different shape. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Some upstream providers do not expose a model-list API, so operators cannot add models through the admin UI: the create/edit form requires loading a discovered catalog first. The backend already supports
catalog_id: "custom"with an explicitcustom_modelsarray (andpreserve_catalogon update), but the frontend had no way to populate it.This PR adds a manual model entry path so those providers can be configured without a discovery endpoint.
Related Issue
N/A
Changes
ProviderManualModelseditor panel for entering an upstream model ID plus an optional display name, with validation for empty input, commas, newlines, duplicates, and already-imported models.catalog_id: "custom",custom_models, andmodel_category: "", withpreserve_catalog: trueon update.Type of Change
Verification
npm run test:domain— 199 passnpm run test:components— 111 files / 824 tests passnpm run typecheck— passnpm run lint— passnpm run build— passnode --test tools/*.test.mjs— 205 passnode tools/check-ui-translations.mjs— passnode tools/check-source-lines.mjs— passgit diff --check— cleanNew tests cover the validation/merge helpers, the panel rendering, and an edit-mode save that keeps the existing catalog options while sending the manual model.
Compatibility, Security, and Operations
Checklist
.envfiles, databases, backups, or runtime logs are included.start.sh, and deployment documentation where applicable.data/model-catalog.yamlremains tracked and catalog changes were reviewed where applicable.git diff --checkpasses.