You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ced5271
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/openrouter/components/messagesrequest.py
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1034,6 +1034,7 @@ class ToolCustomTypedDict(TypedDict):
1034
1034
r"""Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format."""
1035
1035
defer_loading: NotRequired[bool]
1036
1036
description: NotRequired[str]
1037
+
strict: NotRequired[bool]
1037
1038
type: NotRequired[ToolTypeCustom]
1038
1039
1039
1040
@@ -1049,11 +1050,15 @@ class ToolCustom(BaseModel):
0 commit comments