mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-09-04 16:51:48 +00:00
feat(llm): Add support for Ollama LLM (#1526)
This commit is contained in:
@@ -80,3 +80,10 @@ class LLMComponent:
|
||||
)
|
||||
case "mock":
|
||||
self.llm = MockLLM()
|
||||
case "ollama":
|
||||
from llama_index.llms import Ollama
|
||||
|
||||
ollama_settings = settings.ollama
|
||||
self.llm = Ollama(
|
||||
model=ollama_settings.model, base_url=ollama_settings.api_base
|
||||
)
|
||||
|
Reference in New Issue
Block a user