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

adding get_available_models() method #13

Merged
merged 3 commits into from
Mar 1, 2024

Conversation

riccardo-alle
Copy link
Contributor

Feature Description

This task is about moving the available models listing to allms instead of enumerating them in the client code base.

Added

  • allms.models.get_available_models method

from allms.models.azure_llama2 import AzureLlama2Model
from allms.models.azure_mistral import AzureMistralModel
from allms.models.azure_openai import AzureOpenAIModel
from allms.models.vertexai_gemini import VertexAIGeminiModel
from allms.models.vertexai_palm import VertexAIPalmModel

__all__ = ["AzureOpenAIModel", "AzureLlama2Model", "AzureMistralModel", "VertexAIPalmModel", "VertexAIGeminiModel"]


def get_available_models() -> dict[str, Type[AbstractModel]]:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the function to __all__

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Added

@riccardo-alle riccardo-alle merged commit 4d3416c into merging-llm-wrapper-to-allms Mar 1, 2024
2 checks passed
@riccardo-alle riccardo-alle deleted the get-available-models branch March 1, 2024 09:31
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

Successfully merging this pull request may close these issues.

2 participants