mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
only use tgai's prompt template for llama2 instruct models
This commit is contained in:
parent
8845938b31
commit
af33a85043
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ def prompt_factory(model: str, messages: list):
|
|||
return wizardcoder_pt(messages=messages)
|
||||
elif "phind/phind-codellama" in model:
|
||||
return phind_codellama_pt(messages=messages)
|
||||
elif "togethercomputer/llama-2" in model:
|
||||
elif "togethercomputer/llama-2" in model and "instruct" in model:
|
||||
return togetherai_llama_2_chat_pt(messages=messages)
|
||||
else:
|
||||
return default_pt(messages=messages)
|
||||
Loading…
Add table
Reference in a new issue