Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old Today, 03:54 AM   #316
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,511
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
These two template language changes are in the preview 8.10.100.
chaley is offline   Reply With Quote
Old Today, 06:12 AM   #317
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,672
Karma: 7908443
Join Date: Sep 2020
Device: none
Quote:
Originally Posted by kovidgoyal View Post
Released 8.10.100 which has the "Ask AI" lookup feature in the E-book viewer.
When you select text in the viewer, you can ask the AI questions about it, by clicking the lookup button on the popup bar and choosing the Ask AI tab.

It's completely plugin based and even the code for it is not loaded unless you enable it.

Currently it supports using AI services from any of Google, GitHub, OpenRouter and Ollama (for local AI). Note that most of these require setting up an account, but you can use them for free (up to a certain number of times a day, I'd recommend using the Google one as it's the most capable and is currently free for a fair number of queries a day).
Hi Kovid,

I get this error when clicking either "First, configure AI provider" or settings:

Spoiler:
Traceback (most recent call last):
File "calibre\gui2\viewer\llm.py", line 584, in on_chat_link_clicked
File "calibre\gui2\viewer\llm.py", line 331, in show_settings
File "calibre\gui2\viewer\llm.py", line 780, in __init__
File "calibre\gui2\widgets2.py", line 272, in __init__
File "calibre\gui2\viewer\llm.py", line 787, in setup_ui
File "calibre\gui2\viewer\llm.py", line 698, in __init__
File "calibre\gui2\viewer\llm.py", line 704, in load_settings
File "calibre\gui2\viewer\llm.py", line 714, in load_actions_from_prefs
File "calibre\gui2\viewer\llm.py", line 125, in current_actions
AttributeError: 'str' object has no attribute 'get'


This on Win10
Comfy.n is offline   Reply With Quote
Advert
Old Today, 06:31 AM   #318
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,248
Karma: 148951761
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by kovidgoyal View Post
Released 8.10.100 which has the "Ask AI" lookup feature in the E-book viewer.
When you select text in the viewer, you can ask the AI questions about it, by clicking the lookup button on the popup bar and choosing the Ask AI tab.

It's completely plugin based and even the code for it is not loaded unless you enable it.

Currently it supports using AI services from any of Google, GitHub, OpenRouter and Ollama (for local AI). Note that most of these require setting up an account, but you can use them for free (up to a certain number of times a day, I'd recommend using the Google one as it's the most capable and is currently free for a fair number of queries a day).
When I clicked to configure AI, I received the following error.

Quote:
calibre, version 8.10.100
ERROR: Unhandled exception: <b>AttributeError</b>:'LLMPanel' object has no attribute 'quick_actions_as_html'

calibre 8.10.100 embedded-python: True
Windows-10-10.0.26100-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.26100')
Python 3.11.12
Windows: ('10', '10.0.26100', 'SP0', 'Multiprocessor Free')
Interface language: None
EXE path: C:\Program Files\Calibre2\calibre-parallel.exe
Successfully initialized third party plugins: DeACSM (0, 0, 16) && Gather KFX-ZIP (from KFX Input) (2, 26, 2) && DeDRM (10, 0, 9) && Package KFX (from KFX Input) (2, 26, 2) && Annotations (1, 17, 13) && Apple Books covers (1, 1, 0) && Backup Configuration Folder (1, 1, 2) && Barnes & Noble (1, 5, 7) && BookFusion Plugin (0, 8, 1) && Count Pages (1, 13, 7) && Diaps Editing Toolbag (0, 5, 0) && EpubCheck (0, 2, 6) && EpubMerge (3, 2, 0) && EpubSplit (3, 12, 0) && Favourites Menu (1, 3, 1) && Find Duplicates (1, 10, 9) && Hyphenate This! (0, 1, 3) && KFX metadata reader (from KFX Input) (2, 26, 2) && From KFX (2, 26, 2) && KFX Input (2, 26, 2) && Set KFX metadata (from KFX Output) (2, 17, 1) && KFX Output (2, 17, 1) && Kindle hi-res covers (0, 5, 1) && KindleUnpack - The Plugin (0, 83, 8) && Kobo Metadata (1, 12, 0) && Kobo Utilities (2, 24, 3) && Modify ePub (1, 8, 6) && Quality Check (1, 14, 2) && Reading Goal (1, 9, 9) && Reading List (1, 15, 6) && ScrambleEbook (0, 6, 0) && TextDiff (1, 2, 4)
Traceback (most recent call last):
File "calibre\gui2\viewer\lookup.py", line 432, in _tab_changed
File "calibre\gui2\viewer\lookup.py", line 427, in _activate_llm_panel
File "calibre\gui2\viewer\llm.py", line 367, in update_with_text
File "calibre\gui2\viewer\llm.py", line 494, in update_ui_state
AttributeError: 'LLMPanel' object has no attribute 'quick_actions_as_html'
JSWolf is online now   Reply With Quote
Old Today, 07:03 AM   #319
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,507
Karma: 28548962
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@Comfy.m: Looks like you have a bad setting in viewer-webengine.json possibly because you tried out the original PR code? In any case edit that file and remove the llm_quick_actions key (simply rename it to llm_quick_actions2 or something similar) and you should be fine.

EDIT: Actually it was a bug, https://github.com/kovidgoyal/calibr...7c4eb210911646 you can still work around it by editing the fil and setting llm_quick_actions to {}

Last edited by kovidgoyal; Today at 09:05 AM.
kovidgoyal is offline   Reply With Quote
Old Today, 10:21 AM   #320
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,672
Karma: 7908443
Join Date: Sep 2020
Device: none
Thank you, that fixed the issue I mentioned.
Comfy.n is offline   Reply With Quote
Advert
Old Today, 11:33 AM   #321
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,255
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Hi @Kovid.

My Queries counter keep reseting. Also, a coulpe of times the screen turn black, so I had to close the viwer and open again. Next time I'll try running in debug mode so I can get more info.

Is there are a AI to configure the AI language? I can ask it to use pt-BR but sometings it defaults back to english. Also, the reasoning is always in english.

P.S.: I'm using Google AI with a free account. I have some free credits for now.
thiago.eec is offline   Reply With Quote
Old Today, 11:36 AM   #322
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,248
Karma: 148951761
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I still cannot get the AI to work in the viewer without it causing an error.
JSWolf is online now   Reply With Quote
Old Today, 11:59 AM   #323
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,255
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by JSWolf View Post
I still cannot get the AI to work in the viewer without it causing an error.
Go to calibre config dir (..\AppData\Roaming\calibre) and search for 'viewer-webengine.json'. Open the file and add this key:
Code:
"llm_quick_actions": {},
Restart the viewer and it should work.
thiago.eec is offline   Reply With Quote
Old Today, 12:16 PM   #324
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,507
Karma: 28548962
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@Thiago.eec: Queries counter is per session only not all time. As for AI language I'm afraid not different models have different language capabilities. I dont recall off the top of my head if Gemini (the google one) supports pt_BR

Reasoning is model internal and cant really be controlled as far as I know.
kovidgoyal is offline   Reply With Quote
Old Today, 12:24 PM   #325
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,255
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by kovidgoyal View Post
@Thiago.eec: Queries counter is per session only not all time.
Oh, I see. Maybe a configurable time frame would be usuful.

Quote:
Originally Posted by kovidgoyal View Post
As for AI language I'm afraid not different models have different language capabilities. I dont recall off the top of my head if Gemini (the google one) supports pt_BR

Reasoning is model internal and cant really be controlled as far as I know.
It does support portuguese. I asked it to always respond in portuguese. It seems to work, as long as I don't click in any of the quick actions, that uses english. This seems to override my request to use pt-BR, and brings english back for all the responses.
thiago.eec is offline   Reply With Quote
Old Today, 12:42 PM   #326
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,600
Karma: 108669873
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
AI doesn't "reason".
Quoth is offline   Reply With Quote
Old Today, 12:57 PM   #327
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,672
Karma: 7908443
Join Date: Sep 2020
Device: none
Quote:
Originally Posted by thiago.eec View Post
It does support portuguese. I asked it to always respond in portuguese. It seems to work, as long as I don't click in any of the quick actions, that uses english. This seems to override my request to use pt-BR, and brings english back for all the responses.
Can you add actions and will they stick? I tried adding a custom action but:

- it doesn't "pick"

- when I try to edit the new custom action I get the same "built-in action aren't editable" message

I am using a local model for the tests, if that matters. Works awesome for all the built-in actions, with the caveat you mentioned about language .
Comfy.n is offline   Reply With Quote
Old Today, 01:08 PM   #328
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,507
Karma: 28548962
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There is a bug preventing removing/editing of custom actions but you can add them and they stick. The bug will of course be fixed.
kovidgoyal is offline   Reply With Quote
Old Today, 01:16 PM   #329
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,507
Karma: 28548962
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
This will fix the bugs with the custom actions: https://github.com/kovidgoyal/calibr...608379caa274d5

I will release 8.10.101 in an hour with the fixes.

@thiago.eec: Since its impossible for calibre to know whether a model supports a given laguage I guess what can be done is a setting to add to the default prompts a line telling the model to respond in the current UI language if it can.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dockerise multiple Calibre releases for plugin development wolf123 Related Tools 1 02-06-2021 03:12 AM
[Q] How can I check for new releases in a series in calibre or goodreads? lambstone Kobo Reader 1 09-09-2016 12:04 AM
CC B4.0.X beta (all releases) chaley Calibre Companion 41 07-21-2015 06:53 AM
CC beta releases 3.4.4j, 3.4.4k, 3.4.4l chaley Calibre Companion 33 10-21-2014 06:19 AM
dotReader releases first public beta Alexander Turcic Reading and Management 4 11-23-2006 01:40 AM


All times are GMT -4. The time now is 02:53 PM.


MobileRead.com is a privately owned, operated and funded community.