From 3b16a9bbea89ea09e08403c559abfe5fc0befbed Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 14 Apr 2024 11:17:59 +0800 Subject: [PATCH] bugfix --- ahserver/llm_client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ahserver/llm_client.py b/ahserver/llm_client.py index b73a8a9..d1ee62d 100644 --- a/ahserver/llm_client.py +++ b/ahserver/llm_client.py @@ -34,6 +34,7 @@ class LlmProxy: jstr = json.dumps(j) + '\n' bin = jstr.encode('utf-8') await self.resp.write(bin) + await self.resp.flush() except Exception as e: print(f'Write_chunk("{l}") errpr:{e=}')