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