issues/774

This commit is contained in:
恍兮惚兮 2024-05-29 16:03:08 +08:00
parent 3333f41180
commit dad14e60eb

View File

@ -54,7 +54,11 @@ class TS(basetrans):
],
},
verify=False,
).json()
)
try:
res = res.json()
except:
raise Exception(res.text)
try:
line = res["candidates"][0]["content"]["parts"][0]["text"]
return line