Gateway: drop strict on a tool whose schema cannot meet strict mode instead of failing the call with 400

Chat clients such as AIRI send strict: true with looser schemas; the Responses
upstream answers 400 unless every object has additionalProperties false and
every property is required. The transpiler now downgrades that tool to
non-strict and reports it in the warnings list.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-14 18:40:13 +02:00
co-authored by Claude Sonnet 5.5
parent 42b81271b8
commit 25d9cb1c7d
3 changed files with 98 additions and 2 deletions
+5 -1
View File
@@ -1,6 +1,6 @@
[project]
name = "devplacepy"
version = "1.0.21"
version = "1.1.1"
description = "DevPlace - The Developer Social Network"
requires-python = ">=3.12"
dependencies = [
@@ -35,6 +35,7 @@ dependencies = [
"curl_cffi",
"faker",
"defusedxml",
"stealthii @ git+https://retoor.molodetz.nl/retoor/stealthii.git",
]
[project.scripts]
@@ -50,6 +51,9 @@ bots = ["playwright", "faker"]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.metadata]
allow-direct-references = true
[tool.pytest.ini_options]
testpaths = ["tests/unit", "tests/api", "tests/e2e"]
python_files = ["*.py"]