Repository navigation
[AI-215] Choose an inference provider and select a model - #11
Closed
Conversation
With several providers a single list of models can get too long. The default models, the feature bindings and the semantic index form now each use two elements: picking a provider asks the server for the form again, with that provider's models in the second element. Nothing is saved until the form is. No provider means no default model, or the default for a feature. An index requires a model, so its form opens on the first provider, which also leaves the model element in place to show a validation error. Keyboard focus moves to the model element after a provider was picked, and after a model was picked in the index form, because the form they were in was replaced. No select takes focus when a page loads anymore.
|
Caution The provided work package version does not match the core version Details:
Please make sure that:
|
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.
Ticket
https://community.openproject.org/wp/AI-215
Stacked on AI-214, so the diff only shows this ticket.
What are you trying to accomplish?
With several providers, one list of models can get too long. The default models, the feature bindings and the semantic index form now each have two fields: first the provider, then one of its models.
Screenshots
What approach did you choose and why?
LlmConnections::ModelChoiceworks out which provider and model a form shows, andLlmConnections::ModelChoiceFieldsbuilds the two fields.AI involvement
Merge checklist