mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
add bedrock.anthropic support for system prompt using <admin> tag
This commit is contained in:
parent
0c640ab5ef
commit
07ed0abf82
1 changed files with 5 additions and 0 deletions
|
|
@ -40,6 +40,11 @@ def convert_messages_to_prompt(messages, provider):
|
|||
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
Reference in a new issue