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

Function to get a list of model options for the various langchain platforms #371

Open
danemadsen opened this issue Apr 9, 2024 · 1 comment
Labels
c:chat-models Chat models. c:llms Models and integrations. t:enhancement New feature or request

Comments

@danemadsen
Copy link

Feature request

Many of the different AI platforms have an api for getting a list of available models. For instance Open AI and Mistral have the /v1/models endpoint and Ollama has the /api/tags endpoint.

Motivation

This makes it easier to for the user to dynamically set a model and means that when models go outdated, or are no longer compatible with the API they don't have to be manually removed

Your contribution

I've already implemented similar logic for Ollama, Mistral and OpenAI into maid. See below:

https://github.com/Mobile-Artificial-Intelligence/maid/blob/main/lib/classes/open_ai_model.dart#L94-L130

https://github.com/Mobile-Artificial-Intelligence/maid/blob/main/lib/classes/mistral_ai_model.dart#L92-L124

https://github.com/Mobile-Artificial-Intelligence/maid/blob/main/lib/classes/ollama_model.dart#L210-L237

@danemadsen danemadsen added the t:enhancement New feature or request label Apr 9, 2024
@github-project-automation github-project-automation bot moved this to 📋 Backlog in LangChain.dart Apr 9, 2024
@davidmigloz
Copy link
Owner

hey @danemadsen,

Indeed, sounds like a nice thing to have. It should be pretty straightforward to implement, as the model endpoints are already implemented in the respective clients.

I'm currently busy with this ticket, I can work on it afterwards.

@davidmigloz davidmigloz moved this from 📋 Backlog to 📆 Planned in LangChain.dart Apr 9, 2024
@davidmigloz davidmigloz added c:llms Models and integrations. c:chat-models Chat models. labels Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c:chat-models Chat models. c:llms Models and integrations. t:enhancement New feature or request
Projects
Status: 📆 Planned
Development

No branches or pull requests

2 participants