[Bugfix][Responses] Add tests for Chat Completions Responses API Render Parity (#50334)

Signed-off-by: Yifan Zong <yzong@redhat.com>
Co-authored-by: Ben Browning <56071+bbrowning@users.noreply.github.com>
This commit is contained in:
yzong-rh
2026-07-31 15:45:40 -04:00
committed by GitHub
co-authored by Ben Browning
parent 4fdd3e0b74
commit e8b358b4c0
8 changed files with 521 additions and 43 deletions
@@ -296,6 +296,7 @@ class FunctionDefinition(OpenAIBaseModel):
@model_serializer(mode="wrap")
def _serialize(self, handler):
data = handler(self)
data = {k: v for k, v in data.items() if k in type(self).model_fields}
if self.strict is None:
data.pop("strict", None)
if self.defer_loading is None: