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

Add list models function in BaseLLMClient #27

Open
uripeled2 opened this issue Jun 30, 2023 · 0 comments
Open

Add list models function in BaseLLMClient #27

uripeled2 opened this issue Jun 30, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@uripeled2
Copy link
Owner

We can add and abstract method to BaseLLMClient like:
def list_models(**kwargs) -> list[str]
And then we need to implement it in the different clients, we can add a static constants that will return the LLMs names or we can make a call to the relative urls.
Here is OpenAI docs for this kind of endpoint: https://platform.openai.com/docs/api-reference/models/list

@uripeled2 uripeled2 added the enhancement New feature or request label Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant