Skip to content

Commit

Permalink
Fix chat history issue (#1301)
Browse files Browse the repository at this point in the history
Signed-off-by: lvliang-intel <liang1.lv@intel.com>
  • Loading branch information
lvliang-intel committed Feb 22, 2024
1 parent 82d5e02 commit 7bb3314
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ async def get_generation_parameters(
best_of: Optional[int] = None,
use_beam_search: Optional[bool] = None,
) -> Dict[str, Any]:
chatbot.conv_template.clear_messages()
conv = chatbot.conv_template.conv

if isinstance(messages, str):
Expand Down

0 comments on commit 7bb3314

Please sign in to comment.