mirror of
https://github.com/Kakune55/PyGetGPT.git
synced 2025-05-06 18:29:24 +08:00
调整ChatGLMTurbo的文本输出
This commit is contained in:
parent
6654ea0953
commit
9837a91e65
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user