mirror of
https://github.com/TangentFoxy/.lua-files.git
synced 2024-11-20 21:34:23 +00:00
querying a model to get output shouldn't use a wordwrap
This commit is contained in:
parent
57210ec8ea
commit
805459b353
2
llm.lua
2
llm.lua
@ -47,7 +47,7 @@ end
|
|||||||
-- TODO make this check against existant models and error if you try to query a non-existant model
|
-- TODO make this check against existant models and error if you try to query a non-existant model
|
||||||
local function query_model(model, prompt)
|
local function query_model(model, prompt)
|
||||||
if prompt then
|
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
|
else
|
||||||
return wsl_command("ollama run " .. model, false)
|
return wsl_command("ollama run " .. model, false)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user