Skip to content

Commit

Permalink
fix system prompt issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
GaiZhenbiao committed Apr 23, 2024
1 parent 0681627 commit 70118ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/models/base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ def reset(self, remain_system_prompt=False):
choices = get_history_names(self.user_name)
if history_name not in choices:
choices.insert(0, history_name)
system_prompt = self.system_prompt if remain_system_prompt else ""
system_prompt = self.system_prompt if remain_system_prompt else INITIAL_SYSTEM_PROMPT

self.single_turn = self.default_single_turn
self.temperature = self.default_temperature
Expand Down

0 comments on commit 70118ca

Please sign in to comment.