Updated streaming tests

This commit is contained in:
Cyber MacGeddon 2026-01-06 19:48:42 +00:00
parent b34c29ad15
commit fed30621a2

View file

@ -36,6 +36,9 @@ class TextCompletionResponseTranslator(MessageTranslator):
if obj.model: if obj.model:
result["model"] = obj.model result["model"] = obj.model
# Always include end_of_stream flag for streaming support
result["end_of_stream"] = getattr(obj, "end_of_stream", False)
return result return result
def from_response_with_completion(self, obj: TextCompletionResponse) -> Tuple[Dict[str, Any], bool]: def from_response_with_completion(self, obj: TextCompletionResponse) -> Tuple[Dict[str, Any], bool]: