Skip to content

Commit

Permalink
fix: 删除系统提示语中的Knowledge cutoff
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxx-mac committed Nov 21, 2023
1 parent 53fa046 commit 0210064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gpt_term/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def __init__(self, api_key: str, timeout: float):
"Authorization": f"Bearer {api_key}"
}
self.messages = [
{"role": "system", "content": f"You are a helpful assistant.\nKnowledge cutoff: 2021-09\nCurrent date: {datetime.now().strftime('%Y-%m-%d')}"}]
{"role": "system", "content": f"You are a helpful assistant.\nCurrent date: {datetime.now().strftime('%Y-%m-%d')}"}]
self.model = 'gpt-3.5-turbo'
self.tokens_limit = 4096
# as default: gpt-3.5-turbo has a tokens limit as 4096
Expand Down

0 comments on commit 0210064

Please sign in to comment.