fix: limit fastapi version (#229)

This commit is contained in:
Tuan Anh Nguyen Dang (Tadashi_Cin) 2024-09-06 09:23:26 +07:00 committed by GitHub
parent 4b0b28227d
commit e2ed3564ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 19 additions and 16 deletions

View File

@ -176,22 +176,22 @@ if config("LOCAL_MODEL", default=""):
}
# additional LLM configurations
# KH_LLMS["claude"] = {
# "spec": {
# "__type__": "kotaemon.llms.chats.LCAnthropicChat",
# "model_name": "claude-3-5-sonnet-20240620",
# "api_key": "your-key",
# },
# "default": False,
# }
# KH_LLMS["gemini"] = {
# "spec": {
# "__type__": "kotaemon.llms.chats.LCGeminiChat",
# "model_name": "gemini-1.5-pro",
# "api_key": "your-key",
# },
# "default": False,
# }
KH_LLMS["claude"] = {
"spec": {
"__type__": "kotaemon.llms.chats.LCAnthropicChat",
"model_name": "claude-3-5-sonnet-20240620",
"api_key": "your-key",
},
"default": False,
}
KH_LLMS["gemini"] = {
"spec": {
"__type__": "kotaemon.llms.chats.LCGeminiChat",
"model_name": "gemini-1.5-pro",
"api_key": "your-key",
},
"default": False,
}
KH_LLMS["groq"] = {
"spec": {
"__type__": "kotaemon.llms.ChatOpenAI",

View File

@ -30,8 +30,11 @@ dependencies = [
"langchain>=0.1.16,<0.2.0",
"langchain-community>=0.0.34,<0.1.0",
"langchain-openai>=0.1.4,<0.2.0",
"langchain-anthropic",
"langchain-google-genai",
"llama-hub>=0.0.79,<0.1.0",
"llama-index>=0.10.40,<0.11.0",
"fastapi<=0.112.1",
"llama-index-vector-stores-chroma>=0.1.9",
"llama-index-vector-stores-lancedb",
"llama-index-vector-stores-milvus",