From f65c6920c1a7fa81264c954a668cc1ca28148797 Mon Sep 17 00:00:00 2001 From: Liu Date: Fri, 21 Feb 2025 20:01:33 +0800 Subject: [PATCH] =?UTF-8?q?fixbug:=E8=A7=A3=E5=86=B3=E6=8A=A2=E7=AD=94?= =?UTF-8?q?=E5=92=8C=E8=8E=B7=E5=8F=96=E4=BB=BB=E5=8A=A1=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game_task/game_chatgpt_qa.py | 1 - game_task/game_task_encyclopedia.py | 1 - 2 files changed, 2 deletions(-) diff --git a/game_task/game_chatgpt_qa.py b/game_task/game_chatgpt_qa.py index acf3b16..08e3ecd 100644 --- a/game_task/game_chatgpt_qa.py +++ b/game_task/game_chatgpt_qa.py @@ -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") diff --git a/game_task/game_task_encyclopedia.py b/game_task/game_task_encyclopedia.py index d9031f5..dec0dd4 100644 --- a/game_task/game_task_encyclopedia.py +++ b/game_task/game_task_encyclopedia.py @@ -241,7 +241,6 @@ def submit_answer(group_id, player_id, task_id, answer): # 调用内部方法校验答案 answer_json = {"question": question, "top_score": str(top_score), "answer": answer} result = game_answer_json(answer_json) - print(result) points = int(result["score"]) description = result["description"] is_correct = points > 0