@ckeditor/ckeditor5-ai 41.4.2 → 42.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/build/ai.js +1 -1
- package/dist/index.js +2 -1
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/types/ui/aiassistantcontroller.d.ts +1 -1
- package/lang/contexts.json +1 -1
- package/lang/translations/af.po +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/bs.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es-co.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/jv.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/ti.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/uz.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +4 -4
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/index.js +1 -1
- package/src/ui/aiassistantcontroller.d.ts +1 -1
- package/src/ui/aiassistantcontroller.js +2 -1
- package/src/ui/dropdown/aicommandslistview.js +1 -1
- package/src/ui/dropdown/buttonlabelwithhighlightview.js +1 -1
- package/src/ui/dropdown/labelwithhighlightview.js +1 -1
- package/src/ui/form/aiformcontentarea.js +1 -1
- package/src/ui/form/aiformerrorview.js +1 -1
- package/src/ui/form/aiformpromptview.js +1 -1
- package/src/ui/form/aiformtoolbarview.js +1 -1
- package/src/ui/form/aiformview.js +1 -1
- package/src/ui/form/aihistorylistitemview.js +1 -1
- package/src/ui/form/aihistorylistview.js +1 -1
- package/src/ui/form/prompthistory.js +1 -1
- package/src/ui/showaiassistantcommand.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/lang/translations/et.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr "Tehisintellekt kirjutab"
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr "Loodud sisu: %0"
|
|
183
183
|
|
package/lang/translations/fa.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr ""
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr ""
|
|
183
183
|
|
package/lang/translations/fi.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr "Tekoäly kirjoittaa"
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr "Luotu sisältö: %0"
|
|
183
183
|
|
package/lang/translations/fr.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr "L'IA est en train d'écrire"
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr "Contenu généré : %0"
|
|
183
183
|
|
package/lang/translations/gl.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr ""
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr ""
|
|
183
183
|
|
package/lang/translations/he.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr "AI כותב"
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr "התוכן שנוצר: %0"
|
|
183
183
|
|
package/lang/translations/hi.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr "AI लिख रहा है"
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr "बनाया गया कंटेंट: %0"
|
|
183
183
|
|
package/lang/translations/hr.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr ""
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr ""
|
|
183
183
|
|
package/lang/translations/hu.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr "Az AI ír"
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr "Generált tartalom: %0"
|
|
183
183
|
|
package/lang/translations/id.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr "AI sedang menulis"
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr "konten yang dihasilkan: %0"
|
|
183
183
|
|
package/lang/translations/it.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr "L'intelligenza artificiale sta scrivendo"
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr "Contenuti generati: %0"
|
|
183
183
|
|
package/lang/translations/ja.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr "AIが執筆中"
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr "生成されたコンテンツ:%0"
|
|
183
183
|
|
package/lang/translations/jv.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr ""
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr ""
|
|
183
183
|
|
package/lang/translations/ko.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr "AI가 작성 중입니다."
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr "생성된 콘텐츠: %0"
|
|
183
183
|
|
package/lang/translations/lt.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr "Dirbtinis intelektas rašo"
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr "Sukurtas turinys: %0"
|
|
183
183
|
|
package/lang/translations/lv.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr "MI raksta"
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr "Ģenerētais saturs: %0"
|
|
183
183
|
|
package/lang/translations/ms.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr "AI sedang menulis"
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr "Kandungan yang dijana: %0"
|
|
183
183
|
|
package/lang/translations/nl.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr "AI is aan het schrijven"
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr "Gegenereerde content: %0"
|
|
183
183
|
|
package/lang/translations/no.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr "KI skriver"
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr "Generert innhold: %0"
|
|
183
183
|
|
package/lang/translations/pl.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr "Sztuczna inteligencja tworzy treść"
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr "Wygenerowana treść: %0"
|
|
183
183
|
|
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr "A IA está escrevendo"
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr "Conteúdo gerado: %0"
|
|
183
183
|
|
package/lang/translations/pt.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr "A IA está a escrever"
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr "Conteúdo gerado: %0"
|
|
183
183
|
|
package/lang/translations/ro.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr "Inteligența Artificială scrie"
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr "Conținut generat: %0"
|
|
183
183
|
|
package/lang/translations/ru.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr "ИИ пишет"
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr "Сгенерированный контент: %0"
|
|
183
183
|
|
package/lang/translations/sk.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr "AI píše"
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr "Vygenerovaný obsah: %0"
|
|
183
183
|
|
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr ""
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr ""
|
|
183
183
|
|
package/lang/translations/sr.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr "AI piše"
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr "Generisani sadržaj: %0"
|
|
183
183
|
|
package/lang/translations/sv.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr "AI skriver"
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr "Genererat innehåll: %0"
|
|
183
183
|
|
package/lang/translations/th.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr "AI กำลังเขียน"
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr "เนื้อหาที่สร้างขึ้น: %0"
|
|
183
183
|
|
package/lang/translations/ti.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr ""
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr ""
|
|
183
183
|
|
package/lang/translations/tk.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr ""
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr ""
|
|
183
183
|
|
package/lang/translations/tr.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr "Yapay zekâ yazıyor"
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr "Oluşturulan içerik: %0"
|
|
183
183
|
|
package/lang/translations/ug.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr ""
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr ""
|
|
183
183
|
|
package/lang/translations/uk.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr "ШІ пише"
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr "Згенерований контент: %0"
|
|
183
183
|
|
package/lang/translations/ur.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr ""
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr ""
|
|
183
183
|
|
package/lang/translations/uz.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr ""
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr ""
|
|
183
183
|
|
package/lang/translations/vi.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr "AI đang viết"
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr "Nội dung đã tạo: %0"
|
|
183
183
|
|
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr "人工智能正在写作"
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr "生成的内容:%0"
|
|
183
183
|
|
package/lang/translations/zh.po
CHANGED
|
@@ -177,7 +177,7 @@ msgctxt "Aria status message indicating that the AI is generating content. Examp
|
|
|
177
177
|
msgid "AI is writing"
|
|
178
178
|
msgstr "AI 撰寫中"
|
|
179
179
|
|
|
180
|
-
msgctxt "Aria status message indicating
|
|
180
|
+
msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
182
|
msgstr "生成的內容:%0"
|
|
183
183
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-ai",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "42.0.0-alpha.1",
|
|
4
4
|
"description": "AI Assistant feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"ckeditor5": "
|
|
27
|
-
"ckeditor5-collaboration": "
|
|
26
|
+
"ckeditor5": "42.0.0-alpha.1",
|
|
27
|
+
"ckeditor5-collaboration": "42.0.0-alpha.1",
|
|
28
28
|
"@aws-sdk/client-bedrock-runtime": "3.470.0",
|
|
29
|
-
"@ckeditor/ckeditor5-ui": "
|
|
29
|
+
"@ckeditor/ckeditor5-ui": "42.0.0-alpha.1",
|
|
30
30
|
"lodash-es": "4.17.21"
|
|
31
31
|
},
|
|
32
32
|
"type": "module",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xf76ef9=_0x5b9f;(function(_0x5a9a0f,_0x1acc2e){var _0xddc7bd=_0x5b9f,_0x35f4fa=_0x5a9a0f();while(!![]){try{var _0x3a366a=-parseInt(_0xddc7bd(0x137))/0x1*(-parseInt(_0xddc7bd(0x133))/0x2)+-parseInt(_0xddc7bd(0x12f))/0x3+-parseInt(_0xddc7bd(0x139))/0x4+parseInt(_0xddc7bd(0x130))/0x5*(parseInt(_0xddc7bd(0x135))/0x6)+-parseInt(_0xddc7bd(0x13c))/0x7+-parseInt(_0xddc7bd(0x136))/0x8+-parseInt(_0xddc7bd(0x134))/0x9*(-parseInt(_0xddc7bd(0x132))/0xa);if(_0x3a366a===_0x1acc2e)break;else _0x35f4fa['push'](_0x35f4fa['shift']());}catch(_0x3a4cac){_0x35f4fa['push'](_0x35f4fa['shift']());}}}(_0x4b49,0xe7d83));function _0x4b49(){var _0x3c9382=['name','4099650hJDqyx','82945qSdMqb','afterInit','248370oUcfJI','2TLiHFe','1611jpZMbk','186YlaSei','9716728NpfHrS','352159HsReHW','AIAdapter','1546336ENvEvq','aiadapter-text-adapter-not-set','AIRequestError','9764167FlUBMW','pluginName','textAdapter'];_0x4b49=function(){return _0x3c9382;};return _0x4b49();}import{Plugin as _0x6c1e8f}from'ckeditor5/src/core.js';import{CKEditorError as _0x43621e}from'ckeditor5/src/utils.js';function _0x5b9f(_0x178e12,_0xcce92e){var _0x4b494f=_0x4b49();return _0x5b9f=function(_0x5b9fb0,_0x3c77fc){_0x5b9fb0=_0x5b9fb0-0x12e;var _0x7bbce3=_0x4b494f[_0x5b9fb0];return _0x7bbce3;},_0x5b9f(_0x178e12,_0xcce92e);}export default class y extends _0x6c1e8f{static get[_0xf76ef9(0x13d)](){var _0x192f22=_0xf76ef9;return _0x192f22(0x138);}[_0xf76ef9(0x131)](){var _0x34586a=_0xf76ef9;if(!this[_0x34586a(0x13e)])throw new _0x43621e(_0x34586a(0x13a),null);}}export class AIRequestError extends Error{constructor(_0x1071a3){var _0x4a9b58=_0xf76ef9;super(_0x1071a3),this[_0x4a9b58(0x12e)]=_0x4a9b58(0x13b);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3fbd2a=_0x5dfd;(function(_0x263b61,_0x36d637){const _0x415f20=_0x5dfd,_0x213ac3=_0x263b61();while(!![]){try{const _0x24ad84=parseInt(_0x415f20(0xff))/0x1*(parseInt(_0x415f20(0x10a))/0x2)+-parseInt(_0x415f20(0x11b))/0x3*(-parseInt(_0x415f20(0x101))/0x4)+parseInt(_0x415f20(0x11d))/0x5+-parseInt(_0x415f20(0x10d))/0x6+-parseInt(_0x415f20(0x104))/0x7+-parseInt(_0x415f20(0xfc))/0x8+parseInt(_0x415f20(0x119))/0x9;if(_0x24ad84===_0x36d637)break;else _0x213ac3['push'](_0x213ac3['shift']());}catch(_0x2e3e64){_0x213ac3['push'](_0x213ac3['shift']());}}}(_0x4fef,0x8c0be));import{Plugin as _0x5a3542}from'ckeditor5/src/core.js';import{CKEditorError as _0x1fde62}from'ckeditor5/src/utils.js';function _0x5dfd(_0x5d6a7b,_0x553311){const _0x4fef2b=_0x4fef();return _0x5dfd=function(_0x5dfd8e,_0x45aad4){_0x5dfd8e=_0x5dfd8e-0xfa;let _0x33dcdd=_0x4fef2b[_0x5dfd8e];return _0x33dcdd;},_0x5dfd(_0x5d6a7b,_0x553311);}import{default as _0x32d1a5,AIRequestError as _0x20663c}from'./aiadapter.js';import{getTranslation as _0x3db611}from'../utils/common-translations.js';function _0x4fef(){const _0x5df88a=['resolve','401800TFUkMb','abort','AI_ERROR_GET_HEADERS','552400VtQGvZ','assign','aitextadapter-send-request-failed','5ObRykP','AbortError','38228OXqiFG','name','init','6070764yTZTnG','locale','makeRequest','error','catch','_prepareRequestHeaders','333272tsBydD','object','plugins','5627076TNwnyO','requires','reject','textAdapter','application/json','sendRequest','_prepareRequestParameters','get','AI_ERROR_GET_PARAMETERS','signal','abortController','editor','4002660qlQClV','aborted','342WsibMo'];_0x4fef=function(){return _0x5df88a;};return _0x4fef();}export default class P extends _0x5a3542{static get[_0x3fbd2a(0x10e)](){return[_0x32d1a5];}constructor(_0x97f1af){const _0x5b905e=_0x3fbd2a;super(_0x97f1af),this[_0x5b905e(0x117)]=new AbortController();}[_0x3fbd2a(0x103)](){const _0x4ec95f=_0x3fbd2a;this[_0x4ec95f(0x118)][_0x4ec95f(0x10c)][_0x4ec95f(0x114)](_0x32d1a5)[_0x4ec95f(0x110)]=this;}[_0x3fbd2a(0xfa)](){const _0x348a9d=_0x3fbd2a;this[_0x348a9d(0x117)][_0x348a9d(0x116)][_0x348a9d(0x11a)]||(this[_0x348a9d(0x117)][_0x348a9d(0xfa)](),this[_0x348a9d(0x117)]=new AbortController());}async[_0x3fbd2a(0x106)](_0x1728f3){const _0x35b6eb=_0x3fbd2a;return this[_0x35b6eb(0x112)](_0x1728f3)[_0x35b6eb(0x108)](_0x124cd0=>{const _0x460a08=_0x35b6eb;if(_0x124cd0 instanceof _0x20663c)return Promise[_0x460a08(0x10f)](_0x124cd0);if(_0x460a08(0x100)==_0x124cd0[_0x460a08(0x102)])return Promise[_0x460a08(0x11c)]();throw console[_0x460a08(0x107)](_0x124cd0),new _0x1fde62(_0x460a08(0xfe),null);});}async[_0x3fbd2a(0x109)](_0x4bce8e,_0x1021e2){const _0x575383=_0x3fbd2a,_0xcc48d5=this[_0x575383(0x118)][_0x575383(0x105)],_0x3a810c={'Content-Type':_0x575383(0x111)};if(_0x575383(0x10b)==typeof _0x4bce8e)Object[_0x575383(0xfd)](_0x3a810c,_0x4bce8e);else{if(_0x4bce8e)try{const _0x4b963c=await _0x4bce8e(_0x1021e2);Object[_0x575383(0xfd)](_0x3a810c,_0x4b963c);}catch(_0xe4a929){return Promise[_0x575383(0x10f)](new _0x20663c(_0x3db611(_0xcc48d5,_0x575383(0xfb))));}}return _0x3a810c;}async[_0x3fbd2a(0x113)](_0x19faa9,_0x35732d){const _0x42b332=_0x3fbd2a,_0x1f0572=this[_0x42b332(0x118)][_0x42b332(0x105)];if(_0x42b332(0x10b)==typeof _0x19faa9)return _0x19faa9;try{return await _0x19faa9(_0x35732d);}catch(_0x1f2fcb){return Promise[_0x42b332(0x10f)](new _0x20663c(_0x3db611(_0x1f0572,_0x42b332(0x115))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x418c0a=_0x185e;(function(_0x8c37fa,_0x4a6ef5){const _0x2b770a=_0x185e,_0xf1afad=_0x8c37fa();while(!![]){try{const _0x5472ee=parseInt(_0x2b770a(0x1a5))/0x1+-parseInt(_0x2b770a(0x1a3))/0x2+parseInt(_0x2b770a(0x1b1))/0x3*(parseInt(_0x2b770a(0x1bd))/0x4)+parseInt(_0x2b770a(0x198))/0x5*(-parseInt(_0x2b770a(0x1d3))/0x6)+-parseInt(_0x2b770a(0x199))/0x7*(-parseInt(_0x2b770a(0x1d1))/0x8)+parseInt(_0x2b770a(0x1a4))/0x9*(parseInt(_0x2b770a(0x1ae))/0xa)+-parseInt(_0x2b770a(0x1c4))/0xb;if(_0x5472ee===_0x4a6ef5)break;else _0xf1afad['push'](_0xf1afad['shift']());}catch(_0x4efb74){_0xf1afad['push'](_0xf1afad['shift']());}}}(_0x6dca,0xc1cae));function _0x185e(_0x1fc2a2,_0x565025){const _0x6dca5a=_0x6dca();return _0x185e=function(_0x185e8b,_0x4a2bd9){_0x185e8b=_0x185e8b-0x196;let _0x1e4261=_0x6dca5a[_0x185e8b];return _0x1e4261;},_0x185e(_0x1fc2a2,_0x565025);}import{default as _0x54625e}from'./aitextadapter.js';import{AIRequestError as _0x426d77}from'./aiadapter.js';function _0x6dca(){const _0x37262f=['Human:\x0a','27bxgTGT','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','decode','_readStreamableResponse','\x0a\x0aAssistant:','cohere.command','_prepareRequestHeaders','_readAsyncIterableResponse','body','completion','\x0a[/INST]','test','648392tCsGUw','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','getModelFamily','ai21.j2','ai.aws.apiUrl','define','bytes','24594647zissWN','<<SYS>>\x0a','get','data','length','_bedrockClientConfig','utf8','resolve','bedrock-2023-05-31','application/json','read','Instruction:\x0a','meta.llama','8DPItrz','AI_ERROR_UNSUPPORTED_MODEL','2349786WAYNag','ai.aws.bedrockClientConfig','sendRequest','stringify','_requestHeaders','preparePrompt','_getGeneratedText','signal','ai.aws.requestParameters','completions','anthropic.claude','\x0a<</SYS>>\x0a[INST]\x0a','anthropic.claude-v2','split','map','chunk','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','locale','POST','editor','json','join','_prepareRequestParameters','config','filter','5toBcbB','10570798TlvPFe','parse','_readStaticResponse','utf-8','_processProxyRequest','getReader','generation','text','send','_apiUrl','1918210FVFwZj','190035BWxvzu','1369161SDARJj','generations','toString','ai.aws.requestHeaders','abortController','_requestParameters','from','_processAWSRequest','AWSTextAdapter','20YcHePr','pluginName'];_0x6dca=function(){return _0x37262f;};return _0x6dca();}import{BedrockRuntimeClient as _0x4f4f50,InvokeModelCommand as _0x3ecfbb,InvokeModelWithResponseStreamCommand as _0x11fe3b}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x2e64fb}from'../utils/common-translations.js';export default class J extends _0x54625e{static get[_0x418c0a(0x1af)](){const _0x3c9e1e=_0x418c0a;return _0x3c9e1e(0x1ad);}constructor(_0x1a2ed7){const _0x211e8c=_0x418c0a;super(_0x1a2ed7),_0x1a2ed7[_0x211e8c(0x196)][_0x211e8c(0x1c6)](_0x211e8c(0x1db))||_0x1a2ed7[_0x211e8c(0x196)][_0x211e8c(0x1c2)](_0x211e8c(0x1db),{'model':_0x211e8c(0x1df),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x211e8c(0x1cc),'stream':!0x0}),this[_0x211e8c(0x1a2)]=_0x1a2ed7[_0x211e8c(0x196)][_0x211e8c(0x1c6)](_0x211e8c(0x1c1)),this[_0x211e8c(0x1c9)]=_0x1a2ed7[_0x211e8c(0x196)][_0x211e8c(0x1c6)](_0x211e8c(0x1d4)),this[_0x211e8c(0x1d7)]=_0x1a2ed7[_0x211e8c(0x196)][_0x211e8c(0x1c6)](_0x211e8c(0x1a8)),this[_0x211e8c(0x1aa)]=_0x1a2ed7[_0x211e8c(0x196)][_0x211e8c(0x1c6)](_0x211e8c(0x1db));}async[_0x418c0a(0x1d5)]({query:_0x1f4f74,context:_0x3ca2e6,onData:_0x2bc84d,actionId:_0x4f7826}){const _0x35a991=_0x418c0a,{model:_0x38922b,stream:_0x98a52f,..._0x1cc835}=await this[_0x35a991(0x1e9)](this[_0x35a991(0x1aa)],_0x4f7826),_0x179525={'prompt':await this[_0x35a991(0x1d8)](_0x1f4f74,_0x3ca2e6,_0x38922b,_0x4f7826),..._0x1cc835};this[_0x35a991(0x1a2)]?await this[_0x35a991(0x19d)](_0x179525,_0x38922b,_0x98a52f,_0x2bc84d,_0x4f7826):await this[_0x35a991(0x1ac)](_0x179525,_0x38922b,_0x98a52f,_0x2bc84d);}async[_0x418c0a(0x1d8)](_0x2a2ad6,_0x1b102f,_0x247bd1,_0x5efb22){const _0x3f7fda=_0x418c0a;let _0x6327f5,_0x3291fe;return _0x1b102f?(_0x6327f5=_0x3f7fda(0x1be),_0x3291fe=_0x3f7fda(0x1cf)+_0x2a2ad6+_0x3f7fda(0x1b2)+_0x1b102f):(_0x6327f5=_0x3f7fda(0x1e3),_0x3291fe=_0x2a2ad6),_0x3f7fda(0x1d0)==this[_0x3f7fda(0x1bf)](_0x247bd1)?_0x3f7fda(0x1c5)+_0x6327f5+_0x3f7fda(0x1de)+_0x3291fe+_0x3f7fda(0x1bb):_0x3f7fda(0x1b0)+_0x6327f5+'\x0a'+_0x3291fe+_0x3f7fda(0x1b5);}[_0x418c0a(0x1bf)](_0x5548af){const _0xf2c28b=_0x418c0a;if(/^anthropic\.claude/[_0xf2c28b(0x1bc)](_0x5548af))return _0xf2c28b(0x1dd);if(/^ai21\.j2/[_0xf2c28b(0x1bc)](_0x5548af))return _0xf2c28b(0x1c0);if(/^cohere\.command/[_0xf2c28b(0x1bc)](_0x5548af))return _0xf2c28b(0x1b6);if(/^meta\.llama/[_0xf2c28b(0x1bc)](_0x5548af))return _0xf2c28b(0x1d0);throw new _0x426d77(_0x2e64fb(this[_0xf2c28b(0x1e6)][_0xf2c28b(0x1e4)],_0xf2c28b(0x1d2),_0x5548af));}async[_0x418c0a(0x19d)](_0xcbfd93,_0x433ecd,_0x2e1b02,_0x1d4ec1,_0x4f722f){const _0x39aef9=_0x418c0a,_0x35491d={'method':_0x39aef9(0x1e5),'headers':await this[_0x39aef9(0x1b7)](this[_0x39aef9(0x1d7)],_0x4f722f),'body':JSON[_0x39aef9(0x1d6)]({..._0xcbfd93,'model':_0x433ecd,'stream':_0x2e1b02}),'signal':this[_0x39aef9(0x1a9)][_0x39aef9(0x1da)]},_0x21814b=await fetch(this[_0x39aef9(0x1a2)],_0x35491d);_0x2e1b02?await this[_0x39aef9(0x1b4)](_0x21814b,_0x433ecd,_0x1d4ec1):await this[_0x39aef9(0x19b)](_0x21814b,_0x433ecd,_0x1d4ec1);}async[_0x418c0a(0x1ac)](_0x2ec47d,_0x298fff,_0x507411,_0x164dd6){const _0x545d01=_0x418c0a,_0xced9ba=new _0x4f4f50(this[_0x545d01(0x1c9)]),_0x27ce06={'body':JSON[_0x545d01(0x1d6)](_0x2ec47d),'contentType':_0x545d01(0x1cd),'accept':_0x545d01(0x1cd),'modelId':_0x298fff};let _0x2a660f;if(_0x507411){const _0x4279ed=new _0x11fe3b(_0x27ce06);_0x2a660f=await _0xced9ba[_0x545d01(0x1a1)](_0x4279ed,{'abortSignal':this[_0x545d01(0x1a9)][_0x545d01(0x1da)]}),await this[_0x545d01(0x1b8)](_0x2a660f,_0x298fff,_0x164dd6);}else{const _0x19e173=new _0x3ecfbb(_0x27ce06);_0x2a660f=await _0xced9ba[_0x545d01(0x1a1)](_0x19e173,{'abortSignal':this[_0x545d01(0x1a9)][_0x545d01(0x1da)]}),await this[_0x545d01(0x19b)](_0x2a660f,_0x298fff,_0x164dd6);}}async[_0x418c0a(0x1b8)](_0x4fbfe4,_0x5d8e7f,_0x186dbb){const _0x313fa2=_0x418c0a,_0x5e347e=_0x4fbfe4[_0x313fa2(0x1b9)],_0x18cb40=new TextDecoder(_0x313fa2(0x19c));let _0x333aec='';for await(const _0x4543bc of _0x5e347e)if(_0x4543bc[_0x313fa2(0x1e2)]){const _0x20431f=_0x18cb40[_0x313fa2(0x1b3)](_0x4543bc[_0x313fa2(0x1e2)][_0x313fa2(0x1c3)]),_0x3a94ee=JSON[_0x313fa2(0x19a)](_0x20431f);_0x333aec+=this[_0x313fa2(0x1d9)](_0x3a94ee,_0x5d8e7f),_0x186dbb(_0x333aec);}return Promise[_0x313fa2(0x1cb)]();}async[_0x418c0a(0x1b4)](_0x22359f,_0x38231e,_0x39adf4){const _0x37f69f=_0x418c0a,_0x464111=_0x22359f[_0x37f69f(0x1b9)],_0x2c5d10=new TextDecoder(_0x37f69f(0x19c)),_0xa69a00=_0x464111[_0x37f69f(0x19e)]();let _0x29586f='',_0x3cc5da='',_0x5195b6=!0x1;for(;!_0x5195b6;){const {done:_0x1eb2a1,value:_0x1fb456}=await _0xa69a00[_0x37f69f(0x1ce)]();if(_0x5195b6=_0x1eb2a1,_0x5195b6)break;const _0x59913c=(_0x29586f+_0x2c5d10[_0x37f69f(0x1b3)](_0x1fb456))[_0x37f69f(0x1e0)]('\x0a')[_0x37f69f(0x1e1)](_0x14cb7c=>{const _0x2e68a0=_0x37f69f;try{return _0x29586f='',JSON[_0x2e68a0(0x19a)](_0x14cb7c);}catch(_0x127498){return _0x29586f=_0x14cb7c,null;}})[_0x37f69f(0x197)](_0x4830f0=>null!==_0x4830f0);_0x59913c[_0x37f69f(0x1c8)]&&(_0x3cc5da+=_0x59913c[_0x37f69f(0x1e1)](_0x3e60fe=>this[_0x37f69f(0x1d9)](_0x3e60fe,_0x38231e))[_0x37f69f(0x1e8)](''),_0x39adf4(_0x3cc5da));}return Promise[_0x37f69f(0x1cb)]();}async[_0x418c0a(0x19b)](_0x4a3bde,_0xb271bb,_0x5e04ac){const _0x5c1f14=_0x418c0a;let _0x27b340;return _0x27b340=_0x4a3bde instanceof Response?await _0x4a3bde[_0x5c1f14(0x1e7)]():JSON[_0x5c1f14(0x19a)](Buffer[_0x5c1f14(0x1ab)](_0x4a3bde[_0x5c1f14(0x1b9)])[_0x5c1f14(0x1a7)](_0x5c1f14(0x1ca))),(_0x5e04ac(this[_0x5c1f14(0x1d9)](_0x27b340,_0xb271bb)),Promise[_0x5c1f14(0x1cb)]());}[_0x418c0a(0x1d9)](_0x2532a3,_0x136634){const _0x197ffd=_0x418c0a;switch(this[_0x197ffd(0x1bf)](_0x136634)){case _0x197ffd(0x1dd):return _0x2532a3[_0x197ffd(0x1ba)];case _0x197ffd(0x1c0):return _0x2532a3[_0x197ffd(0x1dc)][0x0][_0x197ffd(0x1c7)][_0x197ffd(0x1a0)];case _0x197ffd(0x1b6):return _0x2532a3[_0x197ffd(0x1a6)][0x0][_0x197ffd(0x1a0)];case _0x197ffd(0x1d0):return _0x2532a3[_0x197ffd(0x19f)];}}}
|