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

Support Anthropic Claude model from GCP #632

Open
ankit-tyagi opened this issue Sep 2, 2024 · 4 comments
Open

Support Anthropic Claude model from GCP #632

ankit-tyagi opened this issue Sep 2, 2024 · 4 comments

Comments

@ankit-tyagi
Copy link

Why
I have access to GCP. And I want to pay only for the request I make rather than a constant monthly fee. GCP allows me to pay for the resource I use. use - https://cloud.google.com/vertex-ai/generative-ai/docs/partner-models/use-claude for more description.

Description
I want to use Claude through GCP.

Requirements
I want to be able to use my GCP credential to make inference request to Claude models on GCP Vertex AI.

@enricoros
Copy link
Owner

Hi @ankit-tyagi this is a good request. In the past I tried to support Google Vertex AI, but then Gemini came with a simpler API, which was best.

This ticket is open for anyone that would like to work on if for big-agi-2, but I won't be able to work on it.

@ankit-tyagi
Copy link
Author

ankit-tyagi commented Sep 17, 2024

ok, I will try implement that. Let me start with some simpler tickets and understand the codebase

@rwb-truelime
Copy link

@ankit-tyagi Maybe this helps? I use https://github.com/paul-gauthier/aider which uses https://github.com/BerriAI/litellm that handles all LLM integrations (and more). Here you can find a VertexAI configuration and code example: https://github.com/BerriAI/litellm/blob/e19bb55e3b4c6a858b6e364302ebbf6633a51de5/litellm/llms/vertex_ai_and_google_ai_studio/vertex_ai_anthropic.py . Hope this helps.

@fry69
Copy link

fry69 commented Oct 2, 2024

FYI: The JS/TypeScript equivalent to LiteLLM is the Vercel AI SDK -> https://github.com/vercel/ai which supports Sonnet-3.5 via Vertex AI through a community adapter -> https://sdk.vercel.ai/providers/community-providers/anthropic-vertex-ai

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

4 participants