lee88688 / aider-composer

Aider's VSCode extension, seamlessly integrated into VSCode
https://marketplace.visualstudio.com/items?itemName=lee2py.aider-composer
Apache License 2.0
152 stars 17 forks source link

[FEATURE REQUEST] List available models for provider #30

Open PhunkyBob opened 3 days ago

PhunkyBob commented 3 days ago

Feature description

How

In the "Settings" window, add a new section "Available models" below "API key" for supported providers. In this section, add a list. This list is filled with names of models and if possible, prices. For instance, for OpenRouter, a call to https://openrouter.ai/api/v1/models returns a list of models (id) and the associated prices.

A text box would allow to filter models. For instance, if I type "openai", the list will be filtered with only models containing the word "openai".

When I double-click on an element, it fills the Model text input.

I wonder if it would be possible to use the Aider's "/models" feature, but I find it quite slow comparing to a call to specific APIs.

lee88688 commented 3 days ago

because input a model name may be easy for users, currently extension does not have an appropriate ui component and need to create one and do other ui logic. this may cost some time and actually I do not have enough to do this. I may want to give much more time to fix bug and some other features.

PhunkyBob commented 3 days ago

this may cost some time and actually I do not have enough to do this

I fully agree. If I take some time to (try to) implement it, would you approve a PR?

lee88688 commented 3 days ago

absolutely yes. but it is better to discuss what you want to do to void some extra work before you started. I may start to work with mutiple providers feature soon.