llm-client-sdk icon indicating copy to clipboard operation
llm-client-sdk copied to clipboard

Add list models function in BaseLLMClient

Open uripeled2 opened this issue 1 year ago • 0 comments

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 avatar Jun 30 '23 22:06 uripeled2