mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-12 08:42:18 +00:00
fix(utils): add reason to pyright ignore for allowed_tools guard
This commit is contained in:
parent
25d675330c
commit
8f3a0894c2
1 changed files with 1 additions and 1 deletions
|
|
@ -9056,7 +9056,7 @@ def validate_chat_completion_tool_choice(
|
|||
# {"type": "allowed_tools", "allowed_tools": {"mode": ..., "tools": [...]}}.
|
||||
# Pass it through untouched so downstream providers see the full payload.
|
||||
if tool_choice_type == "allowed_tools" and isinstance(
|
||||
tool_choice.get("allowed_tools"), # pyright: ignore[reportUnknownMemberType, reportUnknownVariableType]
|
||||
tool_choice.get("allowed_tools"), # pyright: ignore[reportUnknownMemberType, reportUnknownVariableType] # raw dict payload
|
||||
dict,
|
||||
):
|
||||
return tool_choice
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue