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
@ -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…
Reference in New Issue
Block a user