Remove redundant OpenAI tool validation

This commit is contained in:
Cursor Agent 2026-05-04 13:04:55 +00:00
parent 4edb5b9481
commit 4e0572bd13
No known key found for this signature in database

View file

@ -1167,7 +1167,6 @@ def completion( # type: ignore # noqa: PLR0915
raise ValueError("model param not passed in.")
# validate messages
messages = validate_and_fix_openai_messages(messages=messages)
tools = validate_and_fix_openai_tools(tools=tools)
# validate tool_choice
tool_choice = validate_chat_completion_tool_choice(tool_choice=tool_choice)
# validate optional params