services(anthropic): allow setting enable prompt caching via frame

This commit is contained in:
Aleix Conchillo Flaqué
2024-08-15 12:43:29 -07:00
parent 93248e1d00
commit 5637f349c6
4 changed files with 20 additions and 9 deletions

View File

@@ -186,6 +186,13 @@ class LLMSetToolsFrame(DataFrame):
tools: List[dict]
@dataclass
class LLMEnablePromptCachingFrame(DataFrame):
"""A frame to enable/disable prompt caching in certain LLMs.
"""
enable: bool
@dataclass
class TTSSpeakFrame(DataFrame):
"""A frame that contains a text that should be spoken by the TTS in the