Do not silently exclude the "context" key from JSON body (#1153)

This commit is contained in:
Martin Melka 2025-07-15 15:59:37 +02:00 committed by GitHub
commit 5151f218cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -459,9 +459,7 @@ class OpenAPITool(Tool):
params_to_exclude.add(p.name)
body_params = {
k: v
for k, v in arguments.items()
if k not in params_to_exclude and k != "context"
k: v for k, v in arguments.items() if k not in params_to_exclude
}
if body_params: