You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is especially relevant for Anthropic, where prompt caching is opt-in, and requires marking each message with cache_control directives. This means that system prompts should be sent as separate messages, with cache control enabled. It seems like we are already correctly sending them as separate messages:
Description
For a primer/generic info on prompt caching, you can check out this document: https://docs.google.com/document/d/1gEgkIyT1CRcTMAwYiU6ldeeosKKbWMX5HM8AdQx3xV0/edit?tab=t.0
This is especially relevant for Anthropic, where prompt caching is opt-in, and requires marking each message with
cache_control
directives. This means that system prompts should be sent as separate messages, with cache control enabled. It seems like we are already correctly sending them as separate messages:codegate/src/codegate/pipeline/system_prompt/codegate.py
Lines 37 to 62 in 1bba21b
Additional Context
No response
The text was updated successfully, but these errors were encountered: