diff options
Diffstat (limited to 'server/continuedev/libs')
-rw-r--r-- | server/continuedev/libs/llm/prompts/chat.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/server/continuedev/libs/llm/prompts/chat.py b/server/continuedev/libs/llm/prompts/chat.py index 036f1b1a..49010229 100644 --- a/server/continuedev/libs/llm/prompts/chat.py +++ b/server/continuedev/libs/llm/prompts/chat.py @@ -1,25 +1,6 @@ from textwrap import dedent from typing import Dict, List -from anthropic import AI_PROMPT, HUMAN_PROMPT - - -def anthropic_template_messages(messages: List[Dict[str, str]]) -> str: - prompt = "" - - # Anthropic prompt must start with a Human turn - if ( - len(messages) > 0 - and messages[0]["role"] != "user" - and messages[0]["role"] != "system" - ): - prompt += f"{HUMAN_PROMPT} Hello." - for msg in messages: - prompt += f"{HUMAN_PROMPT if (msg['role'] == 'user' or msg['role'] == 'system') else AI_PROMPT} {msg['content']} " - - prompt += AI_PROMPT - return prompt - def template_alpaca_messages(msgs: List[Dict[str, str]]) -> str: prompt = "" |