Add Endpoints to facilitate Ollama based chats

Add Endpoints to facilitate Ollama based chats.

Built to use with Open WebUI
This commit is contained in:
InfosecWatchman
2024-12-19 16:14:51 -05:00
parent 1ce5bd4447
commit 103388ecec
3 changed files with 282 additions and 0 deletions

View File

@@ -56,6 +56,12 @@ func Cli(version string) (err error) {
return
}
if currentFlags.ServeOllama {
registry.ConfigureVendors()
err = restapi.ServeOllama(registry, currentFlags.ServeAddress, version)
return
}
if currentFlags.UpdatePatterns {
err = registry.PatternsLoader.PopulateDB()
return