From 6a5414b5fd4ab3a096a7de45dd28a271bbbb2aa4 Mon Sep 17 00:00:00 2001 From: RockChinQ <1010553892@qq.com> Date: Sat, 23 Dec 2023 10:31:56 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20prompt=5Fsubmit=5Flength=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E6=94=B9=E4=B8=BA3072?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- config-template.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index d671df3a..b9069a7f 100644 --- a/.gitignore +++ b/.gitignore @@ -31,4 +31,5 @@ claude.json bard.json /*yaml !/docker-compose.yaml -res/instance_id.json \ No newline at end of file +res/instance_id.json +.DS_Store diff --git a/config-template.py b/config-template.py index a6e56380..dcb06aef 100644 --- a/config-template.py +++ b/config-template.py @@ -200,7 +200,7 @@ encourage_sponsor_at_start = True # 每次向OpenAI接口发送对话记录上下文的字符数 # 最大不超过(4096 - max_tokens)个字符,max_tokens为下方completion_api_params中的max_tokens # 注意:较大的prompt_submit_length会导致OpenAI账户额度消耗更快 -prompt_submit_length = 2048 +prompt_submit_length = 3072 # 是否在token超限报错时自动重置会话 # 可在tips.py中编辑提示语