mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
fix(main): forward enable_json_schema_validation to acompletion_with_mcp
The parameter was declared in completion() signature but not passed to acompletion_with_mcp, causing per-request JSON schema validation to silently fall back to the global default when MCP tools are present.
This commit is contained in:
parent
f5e46f621a
commit
1fe2e92d32
1 changed files with 1 additions and 0 deletions
|
|
@ -1170,6 +1170,7 @@ def completion( # type: ignore # noqa: PLR0915
|
|||
thinking=thinking,
|
||||
web_search_options=web_search_options,
|
||||
shared_session=shared_session,
|
||||
enable_json_schema_validation=enable_json_schema_validation,
|
||||
**kwargs,
|
||||
)
|
||||
api_base = kwargs.get("api_base", None)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue