added similar changes to anthropic.py based on recommendation from @krrishdholakia

This commit is contained in:
canada4663 2023-10-01 20:54:36 -07:00
parent 07ed0abf82
commit 2896df2645
2 changed files with 4 additions and 1 deletions

View file

@ -44,7 +44,6 @@ def convert_messages_to_prompt(messages, provider):
prompt += (
f"{AnthropicConstants.HUMAN_PROMPT.value}<admin>{message['content']}</admin>"
)
else:
prompt += (
f"{AnthropicConstants.AI_PROMPT.value}{message['content']}"