Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] List available models for provider #30

Open
PhunkyBob opened this issue Nov 24, 2024 · 3 comments
Open

[FEATURE REQUEST] List available models for provider #30

PhunkyBob opened this issue Nov 24, 2024 · 3 comments

Comments

@PhunkyBob
Copy link

PhunkyBob commented Nov 24, 2024

Feature description

  • When I select a provider, I would like to have a list with the available models.
  • In this list, I can filter items
  • When I double-click on a model name, it's copied into the model input

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

lee88688 commented Nov 25, 2024

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.

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

No branches or pull requests

2 participants