feat: add support for Gemini, Claude through Langchain (#225) (bump:patch)

This commit is contained in:
Tuan Anh Nguyen Dang (Tadashi_Cin)
2024-09-05 21:58:20 +07:00
committed by GitHub
parent 8be8a4a9d0
commit 05245f501c
6 changed files with 71 additions and 2 deletions

View File

@@ -54,9 +54,21 @@ class LLMManager:
self._default = item.name
def load_vendors(self):
from kotaemon.llms import AzureChatOpenAI, ChatOpenAI, LlamaCppChat
from kotaemon.llms import (
AzureChatOpenAI,
ChatOpenAI,
LCAnthropicChat,
LCGeminiChat,
LlamaCppChat,
)
self._vendors = [ChatOpenAI, AzureChatOpenAI, LlamaCppChat]
self._vendors = [
ChatOpenAI,
AzureChatOpenAI,
LCAnthropicChat,
LCGeminiChat,
LlamaCppChat,
]
for extra_vendor in getattr(flowsettings, "KH_LLM_EXTRA_VENDORS", []):
self._vendors.append(import_dotted_string(extra_vendor, safe=False))