mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-15 23:13:15 +00:00
feature: add guanaco adapter
This commit is contained in:
parent
d114d134df
commit
cfd72331ac
@ -83,6 +83,10 @@ class ChatGLMAdapater(BaseLLMAdaper):
|
||||
return model, tokenizer
|
||||
|
||||
|
||||
class GuanacoAdapter(BaseLLMAdaper):
|
||||
"""TODO Support guanaco"""
|
||||
pass
|
||||
|
||||
class CodeGenAdapter(BaseLLMAdaper):
|
||||
pass
|
||||
|
||||
|
@ -84,6 +84,16 @@ class CodeGenChatAdapter(BaseChatAdpter):
|
||||
pass
|
||||
|
||||
|
||||
class GuanacoAdapter(BaseChatAdpter):
|
||||
"""Model chat adapter for Guanaco """
|
||||
|
||||
def match(self, model_path: str):
|
||||
return "guanaco" in model_path
|
||||
|
||||
def get_generate_stream_func(self):
|
||||
# TODO
|
||||
pass
|
||||
|
||||
register_llm_model_chat_adapter(VicunaChatAdapter)
|
||||
register_llm_model_chat_adapter(ChatGLMChatAdapter)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user