fix test for windows

This commit is contained in:
Paul Gauthier 2024-06-28 18:08:33 -07:00
parent 6f1e26157e
commit a84dca870e

View file

@ -856,10 +856,10 @@ class Coder:
if self.mdstream: if self.mdstream:
self.live_incremental_response(True) self.live_incremental_response(True)
if self.multi_response_content: if self.multi_response_content:
self.multi_response_content += self.partial_response_content self.multi_response_content += self.partial_response_content
self.partial_response_content = self.multi_response_content self.partial_response_content = self.multi_response_content
self.multi_response_content = "" self.multi_response_content = ""
if exhausted: if exhausted:
self.show_exhausted_error() self.show_exhausted_error()
@ -1201,9 +1201,6 @@ class Coder:
def live_incremental_response(self, final): def live_incremental_response(self, final):
show_resp = self.render_incremental_response(final) show_resp = self.render_incremental_response(final)
if not show_resp:
return
self.mdstream.update(show_resp, final=final) self.mdstream.update(show_resp, final=final)
def render_incremental_response(self, final): def render_incremental_response(self, final):