51951 Commits

Author SHA1 Message Date
Kovid Goyal
2b0ac21ca8
... 2025-09-07 18:47:14 +05:30
Kovid Goyal
a8b12a86cf
Use icon images instead of emoji for buttons 2025-09-07 18:47:14 +05:30
Kovid Goyal
af89af3ce9
Fix cost reporting 2025-09-07 18:47:14 +05:30
Kovid Goyal
16ce0ec1f7
Get prompting and streaming display of results working 2025-09-07 18:47:14 +05:30
Kovid Goyal
47527f95af
Put the quick actions into the conversation display 2025-09-07 18:47:14 +05:30
Kovid Goyal
66f53d1826
Prevent usage of providers that retain prompts in OpenRouter 2025-09-07 18:47:14 +05:30
Kovid Goyal
7e7be2671e
Add a copy button for the full conversation 2025-09-07 18:47:13 +05:30
Kovid Goyal
852acfc21b
Add a copy to clipboard for individual responses 2025-09-07 18:47:13 +05:30
Kovid Goyal
4f522450ce
Fix layout sizing of chat widget 2025-09-07 18:47:13 +05:30
Kovid Goyal
9e0a99440f
Add a send button 2025-09-07 18:47:13 +05:30
Kovid Goyal
444a3069a8
New chat widget basically works 2025-09-07 18:47:13 +05:30
Kovid Goyal
c08e37168b
Padding needed for messages as well 2025-09-07 18:47:13 +05:30
Kovid Goyal
9936c302d2
Remove unneccessary creation of llm placeholder
Also implement returnPressed for QTextEdit
2025-09-07 18:47:13 +05:30
Kovid Goyal
c891d8492c
work on integration chat widget 2025-09-07 18:47:13 +05:30
Kovid Goyal
1647e374ab
A re-usable widget to display chats 2025-09-07 18:47:13 +05:30
Kovid Goyal
4d52b96c22
Handle zero quick actions 2025-09-07 18:47:13 +05:30
Kovid Goyal
ae93246cbc
Handle exceptional responses 2025-09-07 18:47:13 +05:30
Kovid Goyal
ba6182b51c
Make more openrouter code re-useable 2025-09-07 18:47:13 +05:30
Kovid Goyal
e7de2e32b3
Make some openrouter backend code re-useable 2025-09-07 18:47:13 +05:30
Kovid Goyal
7d0c597f1d
Remove unused code 2025-09-07 18:47:13 +05:30
Kovid Goyal
cc3a527271
Better wrapping for displayed chat messages 2025-09-07 18:47:13 +05:30
Kovid Goyal
e2c6b0e6b9
Dont need the "You" header in the conv panel
The background color difference makes it quite obvious
2025-09-07 18:47:12 +05:30
Kovid Goyal
5f49c49b1f
Use the actual model name instead of "Assistant" 2025-09-07 18:47:12 +05:30
Kovid Goyal
b2f1d59f94
Basic interaction now works 2025-09-07 18:47:12 +05:30
Kovid Goyal
c8acb5d2d3
More work on integration new AI backend into existing viewer code 2025-09-07 18:47:12 +05:30
Kovid Goyal
dc7977db89
Show model identifier in details 2025-09-07 18:47:12 +05:30
Kovid Goyal
1ddb959afc
Add an accumulator helper class to preserve reasoning details and easily access streaming content 2025-09-07 18:47:12 +05:30
Kovid Goyal
29d4d3fc09
Store provider and model details 2025-09-07 18:47:12 +05:30
Kovid Goyal
53c4bbb570
Get OpenRouter backend basically working 2025-09-07 18:47:12 +05:30
Kovid Goyal
e7fb4610ea
Add configurable reasoning parameter 2025-09-07 18:47:12 +05:30
Kovid Goyal
60b2e7a6ca
Work on automatic model choice 2025-09-07 18:47:12 +05:30
Kovid Goyal
06b9c221e7
Start live worker in viewer process
Needed for live loading of AI backend modules
2025-09-07 18:47:12 +05:30
Kovid Goyal
31059991ef
Abstract message types when chatting with AI 2025-09-07 18:47:12 +05:30
Kovid Goyal
035ef2b351
Centralise checking ready for use 2025-09-07 18:47:12 +05:30
Kovid Goyal
7c595c932b
Use the new AI config widget in viewer Ask AI panel 2025-09-07 18:47:12 +05:30
Kovid Goyal
ca8653bba4
... 2025-09-07 18:47:12 +05:30
Kovid Goyal
aea4abdb0b
More work on OpenRouter config dialog 2025-09-07 18:47:12 +05:30
Kovid Goyal
9cde474a75
Add filtering to model list 2025-09-07 18:47:11 +05:30
Kovid Goyal
316287f249
Finish description of model widget 2025-09-07 18:47:11 +05:30
Kovid Goyal
a750757d8e
More work on OpenRouter config 2025-09-07 18:47:11 +05:30
Kovid Goyal
ebea8de58b
More work on prefs dialog for OpenRouter 2025-09-07 18:47:11 +05:30
Kovid Goyal
51a301c50b
Start work on configuration UI for OpenRouter 2025-09-07 18:47:11 +05:30
Kovid Goyal
4e985398aa
Add tooltips to action buttons 2025-09-07 18:47:11 +05:30
Kovid Goyal
a0d8291a0d
Code to get list of models from OpenRouter with cache 2025-09-07 18:47:11 +05:30
Kovid Goyal
adb85e2569
Start work on supporting multiple AI providers via plugins 2025-09-07 18:47:11 +05:30
Kovid Goyal
21aa23eba4
Mark various strings as translateable 2025-09-07 18:47:11 +05:30
Kovid Goyal
e45562c7ad
Fix handling of LLM quick actions 2025-09-07 18:47:11 +05:30
Kovid Goyal
1dcac34006
Start work on cleaning up LLM settings
Mark strings for translation. Allow using all builtin and custom
highlight styles. Various other minor cleanups.
2025-09-07 18:47:11 +05:30
Kovid Goyal
577e2b0306
pep8 2025-09-07 18:47:11 +05:30
amirthfultehrani
81ca2101f8
feat: Add LLM tab to Lookup panel
Integrates LLM query interface as a new tab in the existing Lookup panel (within Calibre's E-Book Viewer), following feedback from Kovid Goyal on MobileRead forums and GitHub.

It allows for idiomatic interaction with selected text (currently using the OpenRouter.ai API). Key features include: conversational follow-ups on selected text; granular note-saving of AI responses to highlights; contextual review of conversation records on existing highlights; user-configurable settings for API key, model, and highlight color (the one used for LLM-created notes); and session cost estimation and API call tracking; and the sending of the book title + author (as context) to the LLM for improved relevance.
2025-09-07 18:47:11 +05:30