Skip to content

Commit

Permalink
Update messages_formatter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximilian-Winter committed May 14, 2024
1 parent 288389d commit cf36f49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/llama_cpp_agent/messages_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def format_conversation(
return self._format_response(formatted_messages, last_role, response_role)

def _format_message_content(self, content: str, role: Roles) -> str:
if self.strip_prompt and role != Roles.tool:
if self.strip_prompt:
return content.strip()
return content

Expand Down

0 comments on commit cf36f49

Please sign in to comment.