Problem/Motivation

When we initially created the solution for getConfiguredModels, the Mistral API didn't have a detailed model listings page, however now it has a page that supports checking for if a model has tools calling, vision etc.

This means that instead of our pickings of models, we should now be able to dynamically update the list.

Another issue is that the list of models coming back from the model listing doesn't seem to come in an structured order, where better models feature first or something like that. Its very random - instead we should then order by readable name alphabetically.

Also the listing does not offer caching right now, meaning it does an API request every time we list it somewhere.

Proposed resolution

* List the models based on name.
* Add the capabilities based on the lists we get from the Mistral API.
* Cache the model list.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

marcus_johansson created an issue. See original summary.

marcus_johansson’s picture

Issue tags: +AI Initiative Sprint
marcus_johansson’s picture

Status: Active » Needs review
petar_basic’s picture

Status: Needs review » Reviewed & tested by the community

Very minor comment on the MR, but imo can stay.
Otherwise looks good. I've tested it and it lists all the supported models for requested capability in alphabetical order. Not for vision though - but it is not yet listed as supported anyways.

marcus_johansson’s picture

Status: Reviewed & tested by the community » Fixed

Thank you, getting merged!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

arianraeesi’s picture

Issue tags: +AI Product Development
arianraeesi’s picture

Issue tags: -AI Product Development

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.