From 9837a91e658d54ad3146fe0016d0d9ab83b02e9b Mon Sep 17 00:00:00 2001 From: Kakune55 Date: Sat, 9 Dec 2023 14:09:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4ChatGLMTurbo=E7=9A=84?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E8=BE=93=E5=87=BA?= 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 3a58ce0..7791b57 100644 --- a/src/Server/chatglmTurbo.py +++ b/src/Server/chatglmTurbo.py @@ -22,6 +22,6 @@ def service(prompt,history = ""): ] ) if response["code"] == 200: - return 200, response["data"]["choices"][0]["content"], response["data"]["usage"]['total_tokens'] + return 200, str(response["data"]["choices"][0]["content"]).split('"')[1], response["data"]["usage"]['total_tokens'] else: return 50 , str(response["code"])+response["msg"], 0