mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 17:05:41 +01:00
feat(llm): Add support for Ollama LLM (#1526)
This commit is contained in:
parent
b178b51451
commit
6bbec79583
4 changed files with 53 additions and 1 deletions
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue