fix: update default settings and local model guide (#156)

This commit is contained in:
Tuan Anh Nguyen Dang (Tadashi_Cin)
2024-08-30 23:18:31 +07:00
committed by GitHub
parent 4b2b334d2c
commit 9354ad8241
9 changed files with 170 additions and 5 deletions

View File

@@ -152,6 +152,7 @@ if config("LOCAL_MODEL", default=""):
"__type__": "kotaemon.llms.ChatOpenAI",
"base_url": "http://localhost:11434/v1/",
"model": config("LOCAL_MODEL", default="llama3.1:8b"),
"api_key": "ollama",
},
"default": False,
}
@@ -160,6 +161,7 @@ if config("LOCAL_MODEL", default=""):
"__type__": "kotaemon.embeddings.OpenAIEmbeddings",
"base_url": "http://localhost:11434/v1/",
"model": config("LOCAL_MODEL_EMBEDDINGS", default="nomic-embed-text"),
"api_key": "ollama",
},
"default": False,
}