mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-12 08:42:18 +00:00
refactor(deepseek): hold the sent tools in a tuple
This commit is contained in:
parent
aeb2a26f35
commit
ae8e31a6e8
1 changed files with 1 additions and 1 deletions
|
|
@ -256,7 +256,7 @@ class DeepSeekChatConfig(OpenAIGPTConfig):
|
|||
tools: Final = optional_params.get("tools")
|
||||
if not isinstance(tools, list) or not tools:
|
||||
return optional_params
|
||||
sent_tools: Final[list[object]] = tools
|
||||
sent_tools: Final[tuple[object, ...]] = tuple(tools)
|
||||
|
||||
def _is_function_tool(tool: object) -> bool:
|
||||
return isinstance(tool, dict) and tool.get("type") == "function"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue