Skip to content

Commit 0210064

Browse files
author
xiaoxx-mac
committed
fix: 删除系统提示语中的Knowledge cutoff
1 parent 53fa046 commit 0210064

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gpt_term/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def __init__(self, api_key: str, timeout: float):
107107
"Authorization": f"Bearer {api_key}"
108108
}
109109
self.messages = [
110-
{"role": "system", "content": f"You are a helpful assistant.\nKnowledge cutoff: 2021-09\nCurrent date: {datetime.now().strftime('%Y-%m-%d')}"}]
110+
{"role": "system", "content": f"You are a helpful assistant.\nCurrent date: {datetime.now().strftime('%Y-%m-%d')}"}]
111111
self.model = 'gpt-3.5-turbo'
112112
self.tokens_limit = 4096
113113
# as default: gpt-3.5-turbo has a tokens limit as 4096

0 commit comments

Comments
 (0)