perf: 不再支持限制提交的消息的回合数

This commit is contained in:
Rock Chin
2022-12-19 15:44:37 +08:00
parent 03a5f15a58
commit 6120805853
3 changed files with 3 additions and 7 deletions

View File

@@ -139,7 +139,8 @@ class Session:
def append(self, text: str) -> str:
self.last_interact_timestamp = int(time.time())
max_rounds = config.prompt_submit_round_amount if hasattr(config, 'prompt_submit_round_amount') else 7
# max_rounds = config.prompt_submit_round_amount if hasattr(config, 'prompt_submit_round_amount') else 7
max_rounds = 1000 # 不再限制回合数
max_length = config.prompt_submit_length if hasattr(config, "prompt_submit_length") else 1024
# 向API请求补全