mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 18:24:20 +00:00
added similar changes to anthropic.py based on recommendation from @krrishdholakia
This commit is contained in:
parent
07ed0abf82
commit
2896df2645
2 changed files with 4 additions and 1 deletions
|
@ -52,6 +52,10 @@ def completion(
|
|||
prompt += (
|
||||
f"{AnthropicConstants.HUMAN_PROMPT.value}{message['content']}"
|
||||
)
|
||||
elif message["role"] == "system":
|
||||
prompt += (
|
||||
f"{AnthropicConstants.HUMAN_PROMPT.value}<admin>{message['content']}</admin>"
|
||||
)
|
||||
else:
|
||||
prompt += (
|
||||
f"{AnthropicConstants.AI_PROMPT.value}{message['content']}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue