Uh oh!
There was an error while loading. Please reload this page.
AI admin settings - #39567
Conversation
Uh oh!
There was an error while loading. Please reload this page.
| switch($key) { | ||
| case 'ai.textprocessing_provider_preferences': | ||
| // fill $value with $defaultValue values | ||
| $value = array_merge($defaultValue, $value); |
Check notice
Code scanning / Psalm
PossiblyInvalidArgument
| $value = array_merge($defaultValue, $value); | ||
| break; | ||
| case 'ai.translation_provider_preferences': | ||
| $value += array_diff($defaultValue, $value); // Add entries from $defaultValue that are not in $value to the end of $value |
Check notice
Code scanning / Psalm
PossiblyInvalidArgument
susnux
commented
Jul 27, 2023
Nice! But keep in mind vuedragable is not accessible, so there is no way to reorder by using the keyboard, this needs to be done by the user of the component itself. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
8cf0663 to
841a2fbComparemarcelklehr
commented
Jul 28, 2023
@susnux How would you go about adding a11y here? |
susnux
commented
Jul 28, 2023
For Forms I suggested this one: nextcloud/forms#1532 So basically either implement key event listeners (arrow up / down) or add additional buttons for ordering |
marcelklehr
commented
Jul 28, 2023
marcelklehr
commented
Jul 28, 2023
/compile |
julien-nc
left a comment
There was a problem hiding this comment.
Awesome, tested with a FreePrompt, a Summarize and an Outline TP provider.
The fallback works just fine if a provider fails.
Small string changes requested but all the rest LGTM.
I'm also wondering if all the unrelated stuff belongs here but since these are nice fixes, why not letting them in this.
About accessibility, there could be 2 buttons to move items up and down.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
marcelklehr
commented
Jul 28, 2023
Already added :) (see screenshot above) |
0d71d57 to
dd6e92fCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
81d3c4d to
d2e75afComparejulien-nc
commented
Aug 1, 2023
/compile |
julien-nc
commented
Aug 1, 2023
@Pytal Thanks for the review. Your changes have been implemented. |
1537edf to
474de78CompareSigned-off-by: Marcel Klehr <mklehr@gmx.net>
…r precedence Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Co-authored-by: Julien Veyssier <julien-nc@posteo.net> Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Co-authored-by: Julien Veyssier <julien-nc@posteo.net> Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
5f262ca to
b13ca86Comparejulien-nc
commented
Aug 2, 2023
Cypress failure is related with user settings. |
kesselb
commented
Aug 2, 2023
kesselb
commented
Aug 2, 2023
Fix: #39684 |


Summary
Adds an admin settings section for AI settings, allowing admins to specify the precedence of machine translation providers, set the speech-to-text provider to use and select which text processing provider to use for which task.
Checklist