Skip to content

Commit fe867da

Browse files
authored
feat: add json response format in stream mode (#154)
1 parent 662e564 commit fe867da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openjudge/models/openai_chat_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def _is_valid_message(msg: dict) -> bool:
243243
)
244244
structured_model = {"type": "json_object"}
245245

246-
# kwargs["response_format"] = structured_model
246+
kwargs["response_format"] = structured_model
247247

248248
if not self.stream:
249249
kwargs.pop("stream", None)

0 commit comments

Comments
 (0)