From 73bb0f84c8fe28f22e54fa0d83dc67949b20b38c Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 13 Oct 2025 15:10:21 +0800 Subject: [PATCH] bugfix --- llmage/llmclient.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llmage/llmclient.py b/llmage/llmclient.py index db90953..1fa142e 100644 --- a/llmage/llmclient.py +++ b/llmage/llmclient.py @@ -16,6 +16,9 @@ from ahserver.filestorage import FileStorage def erase_apikey(e): e = str(e) ss = e.split('Bearer ') + if len(ss) < 2: + return e + for i, c in enumerate(ss[1]): if c in ['"', "'"]: newb = "XXXXXXXX" + ss[1][i:]