Skip to content

[AI-215] Choose an inference provider and select a model - #11

Closed
xhr15 wants to merge 1 commit into
implementation/ai-214-use-several-inference-providers-at-the-same-timefrom
implementation/ai-215-choose-an-inference-provider-and-select-a-model
Closed

xhr15 wants to merge 1 commit into
implementation/ai-214-use-several-inference-providers-at-the-same-timefrom
implementation/ai-215-choose-an-inference-provider-and-select-a-model

Conversation

@xhr15

@xhr15 xhr15 commented Nov 4, 2026

Copy link
Copy Markdown
Member

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.

  • Picking a provider asks the server for the form again, with that provider's models in the second field. 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 field in place to show a validation error.
  • Keyboard focus moves to the model field after a provider was picked, and after a model was picked in the index form, because the form was replaced. No field takes focus when a page loads anymore.

Screenshots

What approach did you choose and why?

  • One set of fields for all three forms: LlmConnections::ModelChoice works out which provider and model a form shows, and LlmConnections::ModelChoiceFields builds the two fields.

AI involvement

Merge checklist

  • Added/updated tests
  • Added/updated documentation in Lookbook (patterns, previews, etc)
  • Tested major browsers (Chrome, Firefox, Edge, ...)

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.
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown

Caution

The provided work package version does not match the core version

Details:

Please make sure that:

  • The work package version OR your pull request target branch is correct

@xhr15 xhr15 closed this Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant