From 79bfa0792d123a9f7fd4f498ad95dcc6dc32e698 Mon Sep 17 00:00:00 2001 From: Rock Chin <1010553892@qq.com> Date: Sun, 19 Mar 2023 08:45:54 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=A0=E9=99=A4print=E8=B0=83?= =?UTF-8?q?=E8=AF=95=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/openai/session.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/openai/session.py b/pkg/openai/session.py index 9c7afb8..6bef950 100644 --- a/pkg/openai/session.py +++ b/pkg/openai/session.py @@ -287,8 +287,6 @@ class Session: packed_tokens = 0 - print(self.prompt) - while changable_index >= 0 and token_count_index >= 0: if packed_tokens + self.token_counts[token_count_index] > max_tokens: break @@ -304,8 +302,6 @@ class Session: # 将default_prompt和changable_prompts合并 result_prompt = self.default_prompt + changable_prompts - print(changable_prompts) - # 添加当前问题 result_prompt.append( {