perf(anthropic): prompt-caching (#517)
bring back prompt caching support on Anthropic Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
12
lua/avante/templates/_memory.avanterules
Normal file
12
lua/avante/templates/_memory.avanterules
Normal file
@@ -0,0 +1,12 @@
|
||||
{%- if use_xml_format -%}
|
||||
{%- if memory_context -%}
|
||||
<memory_context>
|
||||
{{memory_context}}
|
||||
</memory_context>
|
||||
{%- endif %}
|
||||
{%- else -%}
|
||||
{%- if memory_context -%}
|
||||
MEMORY CONTEXT:
|
||||
{{memory_context}}
|
||||
{%- endif %}
|
||||
{%- endif %}
|
||||
Reference in New Issue
Block a user