Jeffser / Alpaca

An Ollama client made with GTK4 and Adwaita
https://jeffser.com/alpaca
GNU General Public License v3.0
321 stars 39 forks source link

Restart/continue generate answer #185

Closed GaPhilippone closed 1 month ago

GaPhilippone commented 1 month ago

Is your feature request related to a problem? Please describe. When starting the app or after some time (Ollama instance server went down (keepalive expired) and restart / reset), sometime the answer will stop generate so i need to copy/paste what i asked so that the answer will be generated

Describe the solution you'd like A button to resend the prompt when ollama have been reset/restart to regenerate the answer after the ollama_server is restarted.

Describe alternatives you've considered Copy/Paste of prompt is still working

Additional context In vscodium with extension "Continue" for working with IA, you can click a button to restart/continue the generation if it stopped when generating the answer if this example can help to describe.

In the screenshot, you see it say it's generating but only after copy/paste of my prompt after a ollama server reset Screenshot from 2024-08-03 05-30-32

Jeffser commented 1 month ago

This is a great idea actually, I will try to add a regen button when the response gets interrupted, thanks!

Jeffser commented 1 month ago

Hi so I just added this, when the response fails this button appears

image

Even if the response works now the user can regenerate any response, it doesn't matter if it is the latest message or not

image

https://github.com/Jeffser/Alpaca/commit/0d1b15aafcf2ca805c7cc8291ca4b08756cda03b