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