fixing small errors / overlooked details
This commit is contained in:
@@ -31,7 +31,8 @@ output.)
|
|||||||
```
|
```
|
||||||
|
|
||||||
The above are the default settings. If you need something different, you only
|
The above are the default settings. If you need something different, you only
|
||||||
need to specify the changes.
|
need to specify the changes. (There is a `config.json.example` file equivalent
|
||||||
|
to the above.)
|
||||||
|
|
||||||
### Gemini Issues
|
### Gemini Issues
|
||||||
None of this works unless you **disable Gemini's personalization/memory**,
|
None of this works unless you **disable Gemini's personalization/memory**,
|
||||||
|
|||||||
+3
-1
@@ -1,5 +1,7 @@
|
|||||||
{
|
{
|
||||||
"llm_covers": {
|
"llm_covers": {
|
||||||
"calibre_location": "/Applications/calibre.app"
|
"calibre_location": "/Applications/calibre.app",
|
||||||
|
"default_model": "gemma4:12b-mlx",
|
||||||
|
"maximum_bytes": 40000
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,8 @@ function timing.stop()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function timing.print_report()
|
function timing.print_report()
|
||||||
|
if #entries == 0 then return end
|
||||||
|
|
||||||
local minimum, maximum, sum = math.huge, -math.huge, 0
|
local minimum, maximum, sum = math.huge, -math.huge, 0
|
||||||
for _, data in pairs(entries) do
|
for _, data in pairs(entries) do
|
||||||
local delta = data.delta
|
local delta = data.delta
|
||||||
|
|||||||
@@ -52,8 +52,8 @@ local send_prompt = function(text, model)
|
|||||||
|
|
||||||
timing.start()
|
timing.start()
|
||||||
-- word wrap breaks the raw output badly, so I need to implement my own for terminal output somehow
|
-- word wrap breaks the raw output badly, so I need to implement my own for terminal output somehow
|
||||||
local output = utility.capture_safe("cat " .. tmp_file_name:enquote() .. " | ollama run " .. (model or default_model) .. " --nowordwrap")
|
local output = utility.capture_safe("cat " .. tmp_file_name:enquote() .. " | ollama run " .. (model or config.llm_covers.default_model) .. " --nowordwrap")
|
||||||
os.execute("ollama stop " .. (model or default_model)) -- NOTE this makes things slower, but more stable
|
os.execute("ollama stop " .. (model or config.llm_covers.default_model)) -- NOTE this makes things slower, but more stable
|
||||||
local delta = timing.stop()
|
local delta = timing.stop()
|
||||||
|
|
||||||
print("Took " .. delta .. " minutes.")
|
print("Took " .. delta .. " minutes.")
|
||||||
@@ -165,6 +165,7 @@ local convert_ebooks = function(books)
|
|||||||
|
|
||||||
if utility.path_exists(extracted_file) then
|
if utility.path_exists(extracted_file) then
|
||||||
data.extracted_file = extracted_file
|
data.extracted_file = extracted_file
|
||||||
|
data.extracted_file_size = utility.file_size(extracted_file)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user