From 5a9eb250aec3a3fce5f20fb01c589da82dc17946 Mon Sep 17 00:00:00 2001 From: Kakune55 Date: Fri, 10 Nov 2023 18:11:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=A0=BC=E5=BC=8F=E5=AF=BC=E8=87=B4=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Server/chatglmTurbo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Server/chatglmTurbo.py b/src/Server/chatglmTurbo.py index f63dd55..a63e2ca 100644 --- a/src/Server/chatglmTurbo.py +++ b/src/Server/chatglmTurbo.py @@ -24,4 +24,4 @@ def service(prompt,history = ""): if response["code"] == 200: return 200, response["data"]["choices"][0]["content"], response["data"]["usage"]['total_tokens'] else: - return 50 , response["code"]+response["msg"], 0 + return 50 , str(response["code"])+response["msg"], 0