Skip to content

Commit 7a5bfe8

Browse files
committed
fix: add kwargs on all methods
1 parent 83db6b1 commit 7a5bfe8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/strands/models/litellm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ def _format_system_messages(
140140
system_prompt: Optional[str] = None,
141141
*,
142142
system_prompt_content: Optional[list[SystemContentBlock]] = None,
143+
**kwargs: Any
143144
) -> list[dict[str, Any]]:
144145
"""Format system messages for LiteLLM with cache point support.
145146

src/strands/models/openai.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ def _format_system_messages(
206206
system_prompt: Optional[str] = None,
207207
*,
208208
system_prompt_content: Optional[list[SystemContentBlock]] = None,
209+
**kwargs: Any
209210
) -> list[dict[str, Any]]:
210211
"""Format system messages for OpenAI-compatible providers.
211212
@@ -228,7 +229,7 @@ def _format_system_messages(
228229
]
229230

230231
@classmethod
231-
def _format_regular_messages(cls, messages: Messages) -> list[dict[str, Any]]:
232+
def _format_regular_messages(cls, messages: Messages, **kwargs: Any) -> list[dict[str, Any]]:
232233
"""Format regular messages for OpenAI-compatible providers.
233234
234235
Args:

0 commit comments

Comments
 (0)