texstudio-org / texstudio

TeXstudio is a fully featured LaTeX editor. Our goal is to make writing LaTeX documents as easy and comfortable as possible.
http://www.texstudio.org/
GNU General Public License v3.0
2.85k stars 346 forks source link

AI wizard doesn't save query and results #3820

Closed Ticonderoga closed 2 months ago

Ticonderoga commented 2 months ago

Environment

Expected behavior

I tried the AI wizard with Groq. (https://groq.com/) Groq has a standard API with several models available. It means that the Wizard should work without any problem. I set the wizard like this :

Actual behavior

The queries are not stored, so it means I have to copy / paste my query text each time. I often use AI for a translation purpose and here is the prompt I always use :

"I want you to act as an English translator, spelling corrector and improver. I will speak to you in french and english and you will translate it (if necessary) and answer in the corrected and improved version of my text, in English. I want you to replace my simplified A0-level words and sentences with more beautiful and elegant, upper level English words and sentences. Keep the meaning same, but make them more literary. I want you to only reply the correction, the improvements and nothing else, do not write any explanations."

The result is OK and I always receive a fine translation or correction of my text. Unfortunately, I would like to store my prompt and use other ones.

How to reproduce

set an Groq account (free one) with an API Key and then use the AI wizard

sunderme commented 2 months ago

by the way, the prompt can be stored in the ai chat options, grafik

Ticonderoga commented 2 months ago

Well done Thanks but the queries are not saved even if I check the box in the config pane

sunderme commented 1 month ago

have you compiled txs from source ?

Ticonderoga commented 1 month ago

No I used the arch package. I changed to the git package aur/texstudio-git an it seems to work now. Thanks for the fix