Add improve button to text outputs to allow for iteration#596
Add improve button to text outputs to allow for iteration#596lukasdotcom wants to merge 4 commits into
Conversation
Signed-off-by: Lukas Schaefer <lukas@lschaefer.xyz>
|
The button could read "Improve this text", so it's more clear what it does, perhaps? Otherwise, improve could also mean something like "help improve the assistant", etc. |
| return { | ||
| providedCurrentTaskId: () => this.selectedTaskId, | ||
| streaming: () => this.streaming, | ||
| improveOutput: (content) => { |
There was a problem hiding this comment.
IMO this should be done with an event (still listen and handle the event here), not by providing a callback to the child components. Wdyt?
There was a problem hiding this comment.
It seemed easier to not use events because I would need to pass them through all the components, but I've changed it now to use events.
There was a problem hiding this comment.
You could use the Nextcloud event bus so the event does not have to be forwarded by every component.
Signed-off-by: Lukas Schaefer <lukas@lschaefer.xyz>
Makes sense |
Signed-off-by: Lukas Schaefer <lukas@lschaefer.xyz>
37cb446 to
4a5239e
Compare
Signed-off-by: Lukas Schaefer <lukas@lschaefer.xyz>
0e66e4f to
56e064e
Compare
Example in generate text:

It is on all text output fields right now. If you can think of some it shouldn't be on feel free to mention that.
🤖 AI (if applicable)