querying a model to get output shouldn't use a wordwrap

This commit is contained in:
Tangent / Rose / Nebula Rosa 2024-01-13 21:18:24 -07:00
parent 57210ec8ea
commit 805459b353

View File

@ -47,7 +47,7 @@ end
-- TODO make this check against existant models and error if you try to query a non-existant model
local function query_model(model, prompt)
if prompt then
return wsl_command("ollama run " .. model .. " \"" .. utility.escape_quotes(prompt) .. "\"")
return wsl_command("ollama run " .. model .. " --nowordwrap \"" .. utility.escape_quotes(prompt) .. "\"")
else
return wsl_command("ollama run " .. model, false)
end