From dacddcb53d1ed8dd49203227b3d1f8175c85adbf Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 19 Sep 2025 14:48:39 +0800 Subject: [PATCH] bugfix --- llmage/llmclient.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llmage/llmclient.py b/llmage/llmclient.py index dd2877c..f4eb36f 100644 --- a/llmage/llmclient.py +++ b/llmage/llmclient.py @@ -98,6 +98,8 @@ async def uapi_request(request, llm, sor): try: async for l in uapi.stream_linify(llm.upappid, llm.apiname, userid, params=env.params_kw): + if isinstance(l, bytes): + l = l.decode('utf-8') if l and l != '[DONE]': yield_it = False d = {}