Skip to content

Fix/gcs cache docs missing for proxy mode #13328

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pascalwhoop
Copy link
Contributor

@pascalwhoop pascalwhoop commented Aug 6, 2025

Title

Noticed the gcs cache was only documented in library mode, not proxy mode. But that's where one would likely use it since we're deploying the proxy+cache in the cloud, not separately. So updated docs.

Note my IDE auto-formats markdown so there are a lot of formatting changes. I don't think it hurts though, tables are much easier to read now without having the preview open

Relevant issues

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have Added testing in the tests/litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • I have added a screenshot of my new test passing locally
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem

Type

📖 Documentation

Changes

Also just to verify it works

  ~/Code/others/litellm  fix/gcs-cache !4 ?1 ❯ source .venv/bin/activate.fish                                                                             󰌠 3.13.5 (pascal) 󰊭 mtrx-hub-dev-3of 
  ~/Code/others/litellm  fix/gcs-cache !4 ?1 ❯ gsutil ls gs://tmp-pascal-reconnect/cache/                                                               󰌠 3.11.13 (litellm) 󰊭 mtrx-hub-dev-3of 
gs://tmp-pascal-reconnect/cache/62fba56238ee002647993b5bc31a52b15ba0ca8c331907610cf2e584cd0bd6eb
gs://tmp-pascal-reconnect/cache/c24ed39f156de89e9369f6290f708998ed671829c949083ae1bdc5c2314d3f23
  ~/Code/others/litellm  fix/gcs-cache !4 ?1 ❯ gsutil cp gs://tmp-pascal-reconnect/cache/62fba56238ee002647993b5bc31a52b15ba0ca8c331907610cf2e584cd0bd6eb ./cachehit
Copying gs://tmp-pascal-reconnect/cache/62fba56238ee002647993b5bc31a52b15ba0ca8c331907610cf2e584cd0bd6eb...
/ [1 files][  827.0 B/  827.0 B]
Operation completed over 1 objects/827.0 B.
  ~/Code/others/litellm  fix/gcs-cache !4 ?2 ❯ cat cachehit                                                                                             󰌠 3.11.13 (litellm) 
{"timestamp": 1754465969.890058, "response": "{\"id\":\"chatcmpl-C1T29xpOnWj9HVR8dRbNXuQGHa35I\",\"created\":1754465969,\"model\":\"gpt-3.5-turbo-0125\",\"object\":\"chat.completion\",\"system_fingerprint\":null,\"choices\":[{\"finish_reason\":\"stop\",\"index\":0,\"message\":{\"content\":\"Hello! How can I assist you today?\",\"role\":\"assistant\",\"tool_calls\":null,\"function_call\":null,\"annotations\":[]},\"provider_specific_fields\":{}}],\"usage\":{\"completion_tokens\":9,\"prompt_tokens\":9,\"total_tokens\":18,\"completion_tokens_details\":{\"accepted_prediction_tokens\":0,\"audio_tokens\":0,\"reasoning_tokens\":0,\"rejected_prediction_tokens\":0,\"text_tokens\":null},\"prompt_tokens_details\":{\"audio_tokens\":0,\"cached_tokens\":0,\"text_tokens\":null,\"image_tokens\":null}},\"service_tier\":\"default\"}"}⏎
CleanShot 2025-08-06 at 09 58 52

Copy link

vercel bot commented Aug 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 6, 2025 7:59am

</TabItem>

<TabItem value="gcs" label="gcs cache">
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this bit is what matters

@pascalwhoop
Copy link
Contributor Author

P.S. would recommend using auto-formatters for markdown files in pre-commit hooks. I have it in VSCode with this

    "[markdown]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode",
 

@krrishdholakia
Copy link
Contributor

hey @pascalwhoop can you resolve the conflicts?
Screenshot 2025-08-07 at 9 42 07 AM

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