branch: elpa/gptel commit dd48317a1ba3e0af0ffd5dc4b99191c27fff10f9 Author: Karthik Chikmagalur <karthikchikmaga...@gmail.com> Commit: Karthik Chikmagalur <karthikchikmaga...@gmail.com>
gptel-anthropic: Update tool cache TTL to 1h * gptel-anthropic.el (gptel--request-data): Increase the tools cache ttl to 1 hour. According to the Anthropic API, a 1 hour cache ttl can't follow a 5 minute cache ttl, and the tools cache is processed before the rest. (#977) --- gptel-anthropic.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gptel-anthropic.el b/gptel-anthropic.el index ed47d32370..56780e4914 100644 --- a/gptel-anthropic.el +++ b/gptel-anthropic.el @@ -229,7 +229,7 @@ Mutate state INFO with response metadata." (when (and (or (eq gptel-cache t) (memq 'tool gptel-cache)) (gptel--model-capable-p 'cache)) (nconc (aref tools-array (1- (length tools-array))) - '(:cache_control (:type "ephemeral"))))))) + '(:cache_control (:type "ephemeral" :ttl "1h"))))))) (when gptel--schema (plist-put prompts-plist :tools (vconcat