Skip to content

Commit

Permalink
Merge pull request #86 from hass-demacia/main
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
David-Kunz committed Apr 2, 2024
2 parents d6ba7d7 + a3a0dde commit 87fbe81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Example with Lazy
init = function(options) pcall(io.popen, "ollama serve > /dev/null 2>&1 &") end,
-- Function to initialize Ollama
command = function(options)
local body = {model = opts.model, stream = true}
local body = {model = options.model, stream = true}
return "curl --silent --no-buffer -X POST http://" .. options.host .. ":" .. options.port .. "/api/chat -d $body"
end,
-- The command for the Ollama service. You can use placeholders $prompt, $model and $body (shellescaped).
Expand Down

0 comments on commit 87fbe81

Please sign in to comment.