CacheSignature stores a thinking signature for a given model group and text. Used for Claude models that require signed thinking blocks in multi-turn conversations.
(modelName, text, signature string)
| 116 | // CacheSignature stores a thinking signature for a given model group and text. |
| 117 | // Used for Claude models that require signed thinking blocks in multi-turn conversations. |
| 118 | func CacheSignature(modelName, text, signature string) { |
| 119 | CacheSignatureBestEffort(context.Background(), modelName, text, signature) |
| 120 | } |
| 121 | |
| 122 | // CacheSignatureBestEffort stores a thinking signature for completed response paths. |
| 123 | func CacheSignatureBestEffort(ctx context.Context, modelName, text, signature string) bool { |