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 caching #5603

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
9 changes: 9 additions & 0 deletions config.template.toml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,15 @@ api_key = "your-api-key"
# Cost per output token
#output_cost_per_token = 0.0

# Discount to apply for cache hits (e.g., 0.8 for 80% discount)
# Required if input_cost_per_token and output_cost_per_token are set
enyst marked this conversation as resolved.
Show resolved Hide resolved
#cache_hit_discount = 0.8

# Premium to apply for cache writes (e.g., 0.2 for 20% premium)
# Required if input_cost_per_token and output_cost_per_token are set
enyst marked this conversation as resolved.
Show resolved Hide resolved
# Only used for Anthropic models
#cache_write_premium = 0.2

# Custom LLM provider
#custom_llm_provider = ""

Expand Down
Loading