From 7c10604fe72d0388839361e798e39e8802bfb14c Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 4 Sep 2025 18:11:59 +0800 Subject: [PATCH] bugfix --- llmage/llmclient.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llmage/llmclient.py b/llmage/llmclient.py index b7163c6..56b088c 100644 --- a/llmage/llmclient.py +++ b/llmage/llmclient.py @@ -98,11 +98,12 @@ async def uapi_request(request, sor, caller_orgid, callerid, uapi, llm, params): def b64media2url(request, mediafile): env = request._run_ns - debug(f'{request=}, {env=},{type(env)}, {len(mediafile)=}') + debug(f'{request=}{type(request)}, {len(mediafile)=}') if mediafile.startswith('data:'): fs = FileStorage() fname = getFilenameFromBase64(mediafile) fpath = fs._name2path(fname) + debug(f'{env.keys()=},{fpath=},{fname=}') base64_to_file(mediafile, fpath) path = fs.webpath(fpath) return env.entire_url('/idfile?path=') + env.quota(path)