mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-03 07:23:33 +00:00
fix(utils): narrow pyright ignore to the flagged line in allowed_tools guard
This commit is contained in:
parent
8f3a0894c2
commit
512df37a97
1 changed files with 1 additions and 1 deletions
|
|
@ -9059,7 +9059,7 @@ def validate_chat_completion_tool_choice(
|
|||
tool_choice.get("allowed_tools"), # pyright: ignore[reportUnknownMemberType, reportUnknownVariableType] # raw dict payload
|
||||
dict,
|
||||
):
|
||||
return tool_choice
|
||||
return tool_choice # pyright: ignore[reportUnknownVariableType] # narrowed raw dict payload
|
||||
|
||||
# Standard OpenAI format: {"type": "function", "function": {...}}
|
||||
if tool_choice.get("type") is None or tool_choice.get("function") is None:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue