Skip to content

Commit

Permalink
v2.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ashpreetbedi committed Jan 19, 2024
1 parent ea2b73a commit a598b58
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions phi/task/llm/llm_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,9 +390,12 @@ def get_user_prompt(
\n"""

# Add message to prompt
_user_prompt += "Respond to the following message:"
_user_prompt += f"\nUSER: {message}"
_user_prompt += "\nASSISTANT: "
if references or chat_history:
_user_prompt += "Respond to the following message:"
_user_prompt += f"\nUSER: {message}"
_user_prompt += "\nASSISTANT: "
else:
_user_prompt += message

# Return the user prompt
return _user_prompt
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "phidata"
version = "2.3.1"
version = "2.3.2"
description = "Build AI Assistants using language models"
requires-python = ">=3.7"
readme = "README.md"
Expand Down

0 comments on commit a598b58

Please sign in to comment.