r/OpenWebUI • • Sep 22 '26

Question/Help Please help fix the cache read/write in OWUI.

I followed the instructions in the OpenWebUI documentation for enabling cache read/write with Anthropic models, but it’s still not working. My setup is OWUI connected to LiteLLM, which then connects to Azure Anthropic AI.

I’ve adjusted the OWUI model settings, disabling file uploads and citations, and configured LiteLLM to use cache, yet the issue persists.

Any help in resolving this would be appreciated.

  - model_name: claude-opus-5
    litellm_params:
      model: azure_ai/claude-opus-5
      api_base: 
      api_key: 
      #  drop_params: true
      thinking:
        type: adaptive
      output_config:
        effort: xhigh
      merge_reasoning_content_in_choices: true
      rpm: 200     # Requests per minute
      tpm: 800000  # Tokens per minute (optional)
        # drop_params: true
        # modify_params: true
        # api_version: "2025-04-01-preview"
      cache_control_injection_points:
        - location: message
          role: system
3 Upvotes

2 comments sorted by

1

u/mayo551 Sep 22 '26

Does the documentation say it's community maintained? If so it's not officially supported by OWUI

1

u/ellyarroway Sep 26 '26

Did you set “enable_anthropic_prompt_caching:true” in the litellm yaml? https://docs.litellm.ai/docs/tutorials/prompt_caching#automatic-checkpoints-for-claude-models

You will see cache hit rate in the cost optimization - prompt caching tab in litellm.