fixbug:解决抢答和获取任务的问题
This commit is contained in:
@@ -8,7 +8,6 @@ def extract_content(data_string):
|
||||
data = json.loads(data_string)
|
||||
# 提取content字段
|
||||
content = data["choices"][0]["message"].get("content", "")
|
||||
print(content)
|
||||
return content
|
||||
except json.JSONDecodeError:
|
||||
print("Invalid JSON")
|
||||
|
||||
Reference in New Issue
Block a user