- Issue created by @marcus_johansson
- π¬π§United Kingdom yautja_cetanu
We probably want to make it so that AI_Automator can create widgets both on the page and within CKEditor. Then we want some way of easily editing that widget using AI_Automator so the prompt can be changed, a workflow implemented or even RAG with AI search.
OOB you get simple but you can do more with it easily.
- π§πͺBelgium wouters_f Leuven
To get some traction I would first go with a simple port of the openai_ckeditor module from https://www.drupal.org/project/openai β .
only under the hood you can switch models (without doing too much re-work).
(same with openai_dalle).
This gives you the functionality (and I like simple things). - Assigned to wouters_f
- π§πͺBelgium wouters_f Leuven
So the first part is done (in the issue branch).
You can add the new AI button to the ckeditor list and choose a ai provider.
you can also choose "default" (since in the ai module you can choose a default AI model.
Now bumping into
ckeditor5.js?sgf1em:468 CKEditorError: plugincollection-plugin-not-found {"plugin":null}
- πΊπΈUnited States kevinquillen
I think you may need to line up the plugin definition (in the yaml file) to the plugin structure.
https://git.drupalcode.org/issue/ai-3453603/-/tree/3453603-generic-ckedi...
So, ai_ckeditor.AiCKEditor, or something along those lines. Compare to:
https://git.drupalcode.org/project/openai/-/blob/1.0.x/modules/openai_ck...
- π§πͺBelgium wouters_f Leuven
ok thanks for the help (in slack too BTW)
managed to get it working and tested with Mistral too.
Now just waiting for Markus and his Streaming normalisation to. fiish this one off. - π§πͺBelgium wouters_f Leuven
things to think about (in a separate issue).
- should we have a different logo? its now the openai logo, but I could be using mistral.
- I'm now using the default "chat" provider upside: if someone switches that, the ckeditor nicely follows this.Should we allow different temp / config / model selection for the ckeditor plugin?
- We can have multiple chat providers. Should we create a different AI ckeditor button for each (one for mistral, one for openai) so that the side admin can choose which to drag in the ckeditor, this allows you to have mistral in basic html and openai in full html?
This also makes things more difficult (dynamic plugins).Lots of things to think about.
When the streaming responses are fixed in this, I think it should be enough for this issue. I think this is great since the functionality is there and the LLm abstraction can be used. - π§πͺBelgium wouters_f Leuven
Inspired on the Ckeditor AI features I changed the SVG.
source:
- πΊπΈUnited States kevinquillen
The icon could just be the module logo icon
- π¬π§United Kingdom yautja_cetanu
Second that, module Icon would be good. I wonder if we can turn the video here: https://www.drupalcamp.ai/ into a little cartoon mascot with AI easily too
- π§πͺBelgium wouters_f Leuven
Please provide the SVG of the icon and I will put it there.
- π§πͺBelgium wouters_f Leuven
Although I must say I really like the smiley robot face too :D
- Status changed to Needs review
9 months ago 5:23pm 12 July 2024 - Merge request !11[3453603] ckeditor now works with the AI from the AI model. β (Closed) created by wouters_f
- π§πͺBelgium wouters_f Leuven
Would be great if someone could test the module and approve it. Thanks!
- Issue was unassigned.
-
Marcus_Johansson β
committed aca669ac on 1.0.x
Issue #3453603 by Marcus_Johansson: Generic AI CKEditor Plugin
-
Marcus_Johansson β
committed aca669ac on 1.0.x
-
Marcus_Johansson β
committed c0f6d90c on ai-3453603-3453603-generic-ckeditor-plugin
Issue #3453603 by Marcus_Johansson: Generic AI CKEditor Plugin
-
Marcus_Johansson β
committed c0f6d90c on ai-3453603-3453603-generic-ckeditor-plugin
-
Marcus_Johansson β
committed aca669ac on ai-3453603-3453603-generic-ckeditor-plugin
Issue #3453603 by Marcus_Johansson: Generic AI CKEditor Plugin
-
Marcus_Johansson β
committed aca669ac on ai-3453603-3453603-generic-ckeditor-plugin
- π©πͺGermany marcus_johansson
I'm not sure why I can't continue on your branch, but need to do antoher pull request @wouters_f. Anyway I fixed some issues: https://git.drupalcode.org/project/ai/-/merge_requests/17
* Now you can choose the model on the CKEditor editing page.
* Dependency injectionIf you approve the changes, I'm ok with merging.
-
Marcus_Johansson β
committed 3e942b13 on 1.0.x
Issue #3453603 by Marcus_Johansson: Generic AI CKEditor Plugin
-
Marcus_Johansson β
committed 3e942b13 on 1.0.x
-
Marcus_Johansson β
committed 3e942b13 on ai-search
Issue #3453603 by Marcus_Johansson: Generic AI CKEditor Plugin
-
Marcus_Johansson β
committed 3e942b13 on ai-search
-
Marcus_Johansson β
committed aca669ac on ai-search
Issue #3453603 by Marcus_Johansson: Generic AI CKEditor Plugin
-
Marcus_Johansson β
committed aca669ac on ai-search
-
Marcus_Johansson β
committed 3e942b13 on ai-3461081-3461081-port-openaicontent-to
Issue #3453603 by Marcus_Johansson: Generic AI CKEditor Plugin
-
Marcus_Johansson β
committed 3e942b13 on ai-3461081-3461081-port-openaicontent-to
-
Marcus_Johansson β
committed aca669ac on ai-3461081-3461081-port-openaicontent-to
Issue #3453603 by Marcus_Johansson: Generic AI CKEditor Plugin
-
Marcus_Johansson β
committed aca669ac on ai-3461081-3461081-port-openaicontent-to
- Status changed to RTBC
8 months ago 7:38am 17 July 2024 - π©πͺGermany marcus_johansson
Tested and rewritten certain parts. Unless someone opposes it, it will be merged tonight CET.
-
Marcus_Johansson β
committed 3e942b13 on ai-assistants
Issue #3453603 by Marcus_Johansson: Generic AI CKEditor Plugin
-
Marcus_Johansson β
committed 3e942b13 on ai-assistants
-
Marcus_Johansson β
committed aca669ac on ai-assistants
Issue #3453603 by Marcus_Johansson: Generic AI CKEditor Plugin
-
Marcus_Johansson β
committed aca669ac on ai-assistants
- Status changed to Fixed
8 months ago 9:06am 18 July 2024 -
Marcus_Johansson β
committed 3e942b13 on ratelimit-quota-exceptions
Issue #3453603 by Marcus_Johansson: Generic AI CKEditor Plugin
-
Marcus_Johansson β
committed 3e942b13 on ratelimit-quota-exceptions
-
Marcus_Johansson β
committed aca669ac on ratelimit-quota-exceptions
Issue #3453603 by Marcus_Johansson: Generic AI CKEditor Plugin
-
Marcus_Johansson β
committed aca669ac on ratelimit-quota-exceptions
Automatically closed - issue fixed for 2 weeks with no activity.