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

Model List? #458

Closed
aldozorzi opened this issue Jul 3, 2024 · 3 comments
Closed

Model List? #458

aldozorzi opened this issue Jul 3, 2024 · 3 comments

Comments

@aldozorzi
Copy link

aldozorzi commented Jul 3, 2024

Hello there, I can't find a method to retrieve models list... I can't believe Anthropic is the only LLM API which doesn't have, so I must missing something... Could anyone help me, please?

@dandv
Copy link
Contributor

dandv commented Jul 5, 2024

Anthropic doesn't have an API for that. Web UIs like big-agi hardcode the list of models.

Bedrock does. Here's some Python code to get the list of models via Bedrock, but note the identifiers will be in a different format, e.g. anthropic.claude-3-haiku-20240307-v1:0.

import boto3

bedrock = boto3.client(service_name="bedrock", region_name="us-west-2")
response = bedrock.list_foundation_models(byProvider="anthropic")

for summary in response["modelSummaries"]:
    print(summary["modelId"])

@rattrayalex
Copy link
Collaborator

Sorry, Anthropic does not offer an API for listing available models at this time.

@dandv
Copy link
Contributor

dandv commented Dec 26, 2024

For those who land here from a search, Anthropic now offers a model list endpoint - https://docs.anthropic.com/en/api/models-list

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

3 participants