Quote:
Originally Posted by kovidgoyal
@amirthfultehrani rather than using google's bespoke API, have you considered using something like openrouter.ai which allows one to query any model you like via a single API. As for local models, they dont have to be queryable right away, but when designing the config UI and preferences implementation, keep in mind the possibility for their eventual support.
When storing the api keys in prefs, at the very least, obfuscate it, see how is stored, for an example of doing that.
The content server viewer is indeed the calibre viewer running in a browser.
https://manual.calibre-ebook.com/ser...he-book-viewer
Dont worry too much about the poll results, this feature will be useful to some people in some contexts, as an alternative or even supplement to the existing Lookup feature. And given it is opt in and has zero cost when not used, it wont bother anyone that doesnt want to use it.
Another question, how is the panel trigerred? By a shortcut? By a button in the highlight bar? both?
And finally, the name's Kovid not David.
|
Kovid, thank you very much for your reply, my friend, and my dearest apologies for my accident of calling you David. I am 95% sure during my volley of last replies, I was a bit sleep deprived, and I think I, likely, without notice, switched the "Ko" (Kovid) for "Da" (David). I hope you can please forgive me!
Apologies aside, Kovid, a few updates from the last time of contact:
- I have switched from the Google Gemini API to now, the one of OpenRouter.ai (a great suggestion, thank you; much smoother, faster, and saves a lot of potential work - compatibility with all types of LLMs)!

- The API key has now been obfuscated using the same polyglot.binary methods as relay_password
Code:
conf.set('relay_password', as_hex_unicode(password))
pw=from_hex_unicode(opts.relay_password)

- The panel is triggered, as of right now, via one primary way: a global keyboard shortcut (Ctrl + Shift + G). I experimented and I believe managed to also do it with the floating text selection bar, but scrapped it b/c I didn't know how useful it'd be.
Also, Kovid, thank you for the link to the content server viewer and for your comments on the poll results (not even 1 vote for a "Yes"

). My only next question, dear Kovid, is what my next steps shall be.
Thank you for all your time & support thus far. May I hear from you soon, Kovid.