From c5d0800004935554a95328e6970e008e4bb08f36 Mon Sep 17 00:00:00 2001 From: MHammett Date: Sun, 16 Aug 2026 21:10:35 -0500 Subject: [PATCH] docs(responses): trim the field-copy comment per review Keeps the two comments carrying non-obvious facts (the json_schema nesting difference between the two APIs, and type_to_response_format_param passing a dict through unchanged) and drops the one restating the copy. --- litellm/responses/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/responses/utils.py b/litellm/responses/utils.py index ea0f0b962ea..abf7303607a 100644 --- a/litellm/responses/utils.py +++ b/litellm/responses/utils.py @@ -959,8 +959,8 @@ class ResponsesAPIRequestUtils: return {"format": {"type": format_type}} json_schema: Final = converted.get("json_schema") or {} - # `name`/`schema` are required by the API and `strict`/`description` are optional, - # so copy whatever was supplied and let the provider reject a malformed schema. + # Only `strict`/`description` are optional; a missing `name`/`schema` is the + # provider's error to report, not ours to guess at. schema_fields: Final = { key: json_schema[key] for key in ("name", "schema", "strict", "description")