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

Prompt cache for Claude Sonnet used via Vertex AI #2658

Open
david-sabata opened this issue Dec 18, 2024 · 0 comments
Open

Prompt cache for Claude Sonnet used via Vertex AI #2658

david-sabata opened this issue Dec 18, 2024 · 0 comments

Comments

@david-sabata
Copy link

Issue

Hi!
Is the prompt caching support hardcoded to work only for direct Anthropic API?

I'm using Claude via Vertex AI and the prompt cache label isn't showing up even though Vertex does support prompt caching for Anthropic models: https://cloud.google.com/vertex-ai/generative-ai/docs/partner-models/claude-prompt-caching

The command I'm running

VERTEXAI_PROJECT=redacted VERTEXAI_LOCATION=redacted aider --model vertex_ai/claude-3-5-sonnet-v2@20241022 --weak-model vertex_ai/gemini-1.5-flash-002 --dark-mode --cache-prompts --no-auto-commits

Version and model info

Aider v0.69.1
Main model: vertex_ai/claude-3-5-sonnet-v2@20241022 with diff edit format, infinite output
Weak model: vertex_ai/gemini-1.5-flash-002
Git repo: .git with 68 files
Repo-map: using 1024 tokens, files refresh

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

1 participant