mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-04 10:00:17 +00:00
codellama bug fix
This commit is contained in:
parent
7619a16c16
commit
48539d7206
@ -218,7 +218,7 @@ class Llama2ChatAdapter(BaseChatAdpter):
|
|||||||
class CodeLlamaChatAdapter(BaseChatAdpter):
|
class CodeLlamaChatAdapter(BaseChatAdpter):
|
||||||
"""The model ChatAdapter for codellama ."""
|
"""The model ChatAdapter for codellama ."""
|
||||||
def match(self, model_path: str):
|
def match(self, model_path: str):
|
||||||
return "codelama" in model_path.lower()
|
return "codellama" in model_path.lower()
|
||||||
|
|
||||||
def get_conv_template(self, model_path: str) -> Conversation:
|
def get_conv_template(self, model_path: str) -> Conversation:
|
||||||
return get_conv_template("codellama")
|
return get_conv_template("codellama")
|
||||||
|
Loading…
Reference in New Issue
Block a user