feat: 删除print调试信息

This commit is contained in:
Rock Chin 2023-03-19 08:45:54 +00:00
parent cf23c5d31c
commit 79bfa0792d

View File

@ -287,8 +287,6 @@ class Session:
packed_tokens = 0 packed_tokens = 0
print(self.prompt)
while changable_index >= 0 and token_count_index >= 0: while changable_index >= 0 and token_count_index >= 0:
if packed_tokens + self.token_counts[token_count_index] > max_tokens: if packed_tokens + self.token_counts[token_count_index] > max_tokens:
break break
@ -304,8 +302,6 @@ class Session:
# 将default_prompt和changable_prompts合并 # 将default_prompt和changable_prompts合并
result_prompt = self.default_prompt + changable_prompts result_prompt = self.default_prompt + changable_prompts
print(changable_prompts)
# 添加当前问题 # 添加当前问题
result_prompt.append( result_prompt.append(
{ {