File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
pydantic_ai_slim/pydantic_ai/models Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,12 @@ class GoogleModelSettings(ModelSettings, total=False):
129129 See <https://ai.google.dev/api/generate-content#MediaResolution> for more information.
130130 """
131131
132+ google_cached_content : str
133+ """The name of the cached content to use for the model.
134+
135+ See <https://ai.google.dev/gemini-api/docs/caching> for more information.
136+ """
137+
132138
133139@dataclass (init = False )
134140class GoogleModel (Model ):
@@ -377,6 +383,7 @@ async def _build_content_and_config(
377383 thinking_config = model_settings .get ('google_thinking_config' ),
378384 labels = model_settings .get ('google_labels' ),
379385 media_resolution = model_settings .get ('google_video_resolution' ),
386+ cached_content = model_settings .get ('google_cached_content' ),
380387 tools = cast (ToolListUnionDict , tools ),
381388 tool_config = tool_config ,
382389 response_mime_type = response_mime_type ,
You can’t perform that action at this time.
0 commit comments