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.
Issue fork ai_provider_mistral-3567014
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
Comment #3
marcus_johansson commentedComment #4
marcus_johansson commentedComment #5
petar_basic commentedVery 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.
Comment #6
marcus_johansson commentedThank you, getting merged!
Comment #9
arianraeesi commentedComment #10
arianraeesi commented