@ckeditor/ckeditor5-ai 41.4.1 → 42.0.0-alpha.0
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.0",
|
|
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.0",
|
|
27
|
+
"ckeditor5-collaboration": "42.0.0-alpha.0",
|
|
28
28
|
"@aws-sdk/client-bedrock-runtime": "3.470.0",
|
|
29
|
-
"@ckeditor/ckeditor5-ui": "
|
|
29
|
+
"@ckeditor/ckeditor5-ui": "42.0.0-alpha.0",
|
|
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
|
+
function _0x1362(_0x4a21c9,_0x2df464){var _0x22bbeb=_0x22bb();return _0x1362=function(_0x136297,_0x14d882){_0x136297=_0x136297-0x110;var _0x5a8f96=_0x22bbeb[_0x136297];return _0x5a8f96;},_0x1362(_0x4a21c9,_0x2df464);}var _0x4e311d=_0x1362;(function(_0x397df9,_0x4a5ecf){var _0x32a0b8=_0x1362,_0x58ea7f=_0x397df9();while(!![]){try{var _0xed8318=parseInt(_0x32a0b8(0x11f))/0x1*(parseInt(_0x32a0b8(0x121))/0x2)+parseInt(_0x32a0b8(0x11e))/0x3+parseInt(_0x32a0b8(0x11c))/0x4+-parseInt(_0x32a0b8(0x11a))/0x5*(-parseInt(_0x32a0b8(0x120))/0x6)+-parseInt(_0x32a0b8(0x115))/0x7+-parseInt(_0x32a0b8(0x11d))/0x8*(parseInt(_0x32a0b8(0x11b))/0x9)+parseInt(_0x32a0b8(0x118))/0xa*(-parseInt(_0x32a0b8(0x114))/0xb);if(_0xed8318===_0x4a5ecf)break;else _0x58ea7f['push'](_0x58ea7f['shift']());}catch(_0x3293f1){_0x58ea7f['push'](_0x58ea7f['shift']());}}}(_0x22bb,0xcd5eb));import{Plugin as _0x527b41}from'ckeditor5/src/core.js';import{CKEditorError as _0x59ec3b}from'ckeditor5/src/utils.js';export default class y extends _0x527b41{static get[_0x4e311d(0x112)](){var _0x2dd0e0=_0x4e311d;return _0x2dd0e0(0x116);}[_0x4e311d(0x113)](){var _0x2a41c5=_0x4e311d;if(!this[_0x2a41c5(0x110)])throw new _0x59ec3b(_0x2a41c5(0x117),null);}}function _0x22bb(){var _0x20a9a4=['2666468SpABad','AIAdapter','aiadapter-text-adapter-not-set','270EcwBtk','AIRequestError','5dGuTbP','9poFNey','4953144OFyepx','7906744FseCNB','542064pjIZCo','8869PshnEG','9776058npsOzM','288gzhXdO','textAdapter','name','pluginName','afterInit','861663rkNapG'];_0x22bb=function(){return _0x20a9a4;};return _0x22bb();}export class AIRequestError extends Error{constructor(_0x16bcf6){var _0x2c89b9=_0x4e311d;super(_0x16bcf6),this[_0x2c89b9(0x111)]=_0x2c89b9(0x119);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x48db(){const _0x48b5cb=['sendRequest','makeRequest','editor','303524jFLdzg','object','1520244etfNQk','343062Dvrfbo','8eSnOVT','textAdapter','init','_prepareRequestHeaders','679112ffSHSw','153rdlVTe','resolve','AI_ERROR_GET_HEADERS','reject','abort','plugins','_prepareRequestParameters','get','aborted','1546880xSKSfb','aitextadapter-send-request-failed','assign','AI_ERROR_GET_PARAMETERS','3938375KTFMrz','2687139CvRuHp','locale','requires','catch','name','abortController','application/json','AbortError','error','signal'];_0x48db=function(){return _0x48b5cb;};return _0x48db();}const _0x37be83=_0x1cc4;(function(_0x323617,_0x1d067d){const _0x3aad24=_0x1cc4,_0x411ce6=_0x323617();while(!![]){try{const _0x20b6ff=-parseInt(_0x3aad24(0x174))/0x1*(-parseInt(_0x3aad24(0x173))/0x2)+parseInt(_0x3aad24(0x163))/0x3+-parseInt(_0x3aad24(0x170))/0x4+parseInt(_0x3aad24(0x182))/0x5+parseInt(_0x3aad24(0x172))/0x6+-parseInt(_0x3aad24(0x162))/0x7+-parseInt(_0x3aad24(0x178))/0x8*(parseInt(_0x3aad24(0x179))/0x9);if(_0x20b6ff===_0x1d067d)break;else _0x411ce6['push'](_0x411ce6['shift']());}catch(_0x3869fc){_0x411ce6['push'](_0x411ce6['shift']());}}}(_0x48db,0xb6e24));import{Plugin as _0x491d9e}from'ckeditor5/src/core.js';import{CKEditorError as _0x44c3f6}from'ckeditor5/src/utils.js';import{default as _0x5c60c3,AIRequestError as _0x20c956}from'./aiadapter.js';function _0x1cc4(_0x43ed50,_0x374de3){const _0x48dbdc=_0x48db();return _0x1cc4=function(_0x1cc4db,_0x4aa74b){_0x1cc4db=_0x1cc4db-0x162;let _0x280fd5=_0x48dbdc[_0x1cc4db];return _0x280fd5;},_0x1cc4(_0x43ed50,_0x374de3);}import{getTranslation as _0x13bc4e}from'../utils/common-translations.js';export default class P extends _0x491d9e{static get[_0x37be83(0x165)](){return[_0x5c60c3];}constructor(_0x5027f0){const _0x51fdc8=_0x37be83;super(_0x5027f0),this[_0x51fdc8(0x168)]=new AbortController();}[_0x37be83(0x176)](){const _0x128ed8=_0x37be83;this[_0x128ed8(0x16f)][_0x128ed8(0x17e)][_0x128ed8(0x180)](_0x5c60c3)[_0x128ed8(0x175)]=this;}[_0x37be83(0x17d)](){const _0x2b91d9=_0x37be83;this[_0x2b91d9(0x168)][_0x2b91d9(0x16c)][_0x2b91d9(0x181)]||(this[_0x2b91d9(0x168)][_0x2b91d9(0x17d)](),this[_0x2b91d9(0x168)]=new AbortController());}async[_0x37be83(0x16e)](_0x2e6a35){const _0x14611b=_0x37be83;return this[_0x14611b(0x16d)](_0x2e6a35)[_0x14611b(0x166)](_0x10dae8=>{const _0x4716c4=_0x14611b;if(_0x10dae8 instanceof _0x20c956)return Promise[_0x4716c4(0x17c)](_0x10dae8);if(_0x4716c4(0x16a)==_0x10dae8[_0x4716c4(0x167)])return Promise[_0x4716c4(0x17a)]();throw console[_0x4716c4(0x16b)](_0x10dae8),new _0x44c3f6(_0x4716c4(0x183),null);});}async[_0x37be83(0x177)](_0x27f316,_0x4d4ff1){const _0x2a7622=_0x37be83,_0x2f770f=this[_0x2a7622(0x16f)][_0x2a7622(0x164)],_0x4303bb={'Content-Type':_0x2a7622(0x169)};if(_0x2a7622(0x171)==typeof _0x27f316)Object[_0x2a7622(0x184)](_0x4303bb,_0x27f316);else{if(_0x27f316)try{const _0x2fc3d9=await _0x27f316(_0x4d4ff1);Object[_0x2a7622(0x184)](_0x4303bb,_0x2fc3d9);}catch(_0x3284fc){return Promise[_0x2a7622(0x17c)](new _0x20c956(_0x13bc4e(_0x2f770f,_0x2a7622(0x17b))));}}return _0x4303bb;}async[_0x37be83(0x17f)](_0xd27ea9,_0x20ef62){const _0x588f79=_0x37be83,_0xcaeb45=this[_0x588f79(0x16f)][_0x588f79(0x164)];if(_0x588f79(0x171)==typeof _0xd27ea9)return _0xd27ea9;try{return await _0xd27ea9(_0x20ef62);}catch(_0x2119b7){return Promise[_0x588f79(0x17c)](new _0x20c956(_0x13bc4e(_0xcaeb45,_0x588f79(0x185))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x48a11d=_0x3153;(function(_0x1bb0f5,_0x1ba23a){const _0x11217c=_0x3153,_0x152a88=_0x1bb0f5();while(!![]){try{const _0x993023=-parseInt(_0x11217c(0x17b))/0x1*(parseInt(_0x11217c(0x1bb))/0x2)+-parseInt(_0x11217c(0x180))/0x3+-parseInt(_0x11217c(0x185))/0x4*(-parseInt(_0x11217c(0x18e))/0x5)+parseInt(_0x11217c(0x1bc))/0x6*(parseInt(_0x11217c(0x179))/0x7)+parseInt(_0x11217c(0x173))/0x8*(-parseInt(_0x11217c(0x197))/0x9)+parseInt(_0x11217c(0x17a))/0xa+parseInt(_0x11217c(0x196))/0xb;if(_0x993023===_0x1ba23a)break;else _0x152a88['push'](_0x152a88['shift']());}catch(_0x4560e1){_0x152a88['push'](_0x152a88['shift']());}}}(_0x3880,0xa0cc0));function _0x3880(){const _0x102ffc=['join','POST','parse','editor','_processAWSRequest','<<SYS>>\x0a','generation','text','length','_prepareRequestHeaders','data','bedrock-2023-05-31','_requestParameters','ai21.j2','filter','6Rskdbo','6Pkcybi','test','ai.aws.requestHeaders','AWSTextAdapter','_apiUrl','_getGeneratedText','\x0a\x0aAssistant:','bytes','cohere.command','getModelFamily','_readAsyncIterableResponse','66592UCZaTE','stringify','split','\x0a<</SYS>>\x0a[INST]\x0a','signal','utf8','1989330pqccFW','9533090arafYO','379074YutJIs','_readStreamableResponse','anthropic.claude','locale','sendRequest','392031fGqqds','ai.aws.apiUrl','utf-8','pluginName','completion','196mWUfQO','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','resolve','map','body','decode','from','toString','_bedrockClientConfig','49255daKovZ','_processProxyRequest','preparePrompt','send','getReader','completions','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.','\x0a[/INST]','2361139GxDNhi','9qZfESm','_readStaticResponse','_requestHeaders','ai.aws.requestParameters','abortController','application/json','anthropic.claude-v2','meta.llama','_prepareRequestParameters','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.','json','get','Instruction:\x0a','chunk','AI_ERROR_UNSUPPORTED_MODEL','define','ai.aws.bedrockClientConfig','generations','read','Human:\x0a','config'];_0x3880=function(){return _0x102ffc;};return _0x3880();}import{default as _0x1415d3}from'./aitextadapter.js';import{AIRequestError as _0x517eee}from'./aiadapter.js';import{BedrockRuntimeClient as _0x2f6856,InvokeModelCommand as _0x473960,InvokeModelWithResponseStreamCommand as _0x5d91e0}from'@aws-sdk/client-bedrock-runtime';function _0x3153(_0x34e0be,_0x292f35){const _0x388055=_0x3880();return _0x3153=function(_0x3153d5,_0x2e1223){_0x3153d5=_0x3153d5-0x173;let _0x41ec82=_0x388055[_0x3153d5];return _0x41ec82;},_0x3153(_0x34e0be,_0x292f35);}import{getTranslation as _0x13c182}from'../utils/common-translations.js';export default class J extends _0x1415d3{static get[_0x48a11d(0x183)](){const _0x18165b=_0x48a11d;return _0x18165b(0x1bf);}constructor(_0x3cfd1d){const _0x4b90d8=_0x48a11d;super(_0x3cfd1d),_0x3cfd1d[_0x4b90d8(0x1ab)][_0x4b90d8(0x1a2)](_0x4b90d8(0x19a))||_0x3cfd1d[_0x4b90d8(0x1ab)][_0x4b90d8(0x1a6)](_0x4b90d8(0x19a),{'model':_0x4b90d8(0x19d),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x4b90d8(0x1b7),'stream':!0x0}),this[_0x4b90d8(0x1c0)]=_0x3cfd1d[_0x4b90d8(0x1ab)][_0x4b90d8(0x1a2)](_0x4b90d8(0x181)),this[_0x4b90d8(0x18d)]=_0x3cfd1d[_0x4b90d8(0x1ab)][_0x4b90d8(0x1a2)](_0x4b90d8(0x1a7)),this[_0x4b90d8(0x199)]=_0x3cfd1d[_0x4b90d8(0x1ab)][_0x4b90d8(0x1a2)](_0x4b90d8(0x1be)),this[_0x4b90d8(0x1b8)]=_0x3cfd1d[_0x4b90d8(0x1ab)][_0x4b90d8(0x1a2)](_0x4b90d8(0x19a));}async[_0x48a11d(0x17f)]({query:_0x48bb83,context:_0x1c286c,onData:_0x32a8a8,actionId:_0x33f7ef}){const _0x17700e=_0x48a11d,{model:_0x3afa46,stream:_0x4a871f,..._0x29a90f}=await this[_0x17700e(0x19f)](this[_0x17700e(0x1b8)],_0x33f7ef),_0x4da9e9={'prompt':await this[_0x17700e(0x190)](_0x48bb83,_0x1c286c,_0x3afa46,_0x33f7ef),..._0x29a90f};this[_0x17700e(0x1c0)]?await this[_0x17700e(0x18f)](_0x4da9e9,_0x3afa46,_0x4a871f,_0x32a8a8,_0x33f7ef):await this[_0x17700e(0x1b0)](_0x4da9e9,_0x3afa46,_0x4a871f,_0x32a8a8);}async[_0x48a11d(0x190)](_0xbe2ba0,_0x300114,_0x47d59b,_0x11f77b){const _0x46aa5a=_0x48a11d;let _0x36e106,_0xc0abfa;return _0x300114?(_0x36e106=_0x46aa5a(0x1a0),_0xc0abfa=_0x46aa5a(0x1a3)+_0xbe2ba0+_0x46aa5a(0x186)+_0x300114):(_0x36e106=_0x46aa5a(0x194),_0xc0abfa=_0xbe2ba0),_0x46aa5a(0x19e)==this[_0x46aa5a(0x1c5)](_0x47d59b)?_0x46aa5a(0x1b1)+_0x36e106+_0x46aa5a(0x176)+_0xc0abfa+_0x46aa5a(0x195):_0x46aa5a(0x1aa)+_0x36e106+'\x0a'+_0xc0abfa+_0x46aa5a(0x1c2);}[_0x48a11d(0x1c5)](_0x599933){const _0x29d6d6=_0x48a11d;if(/^anthropic\.claude/[_0x29d6d6(0x1bd)](_0x599933))return _0x29d6d6(0x17d);if(/^ai21\.j2/[_0x29d6d6(0x1bd)](_0x599933))return _0x29d6d6(0x1b9);if(/^cohere\.command/[_0x29d6d6(0x1bd)](_0x599933))return _0x29d6d6(0x1c4);if(/^meta\.llama/[_0x29d6d6(0x1bd)](_0x599933))return _0x29d6d6(0x19e);throw new _0x517eee(_0x13c182(this[_0x29d6d6(0x1af)][_0x29d6d6(0x17e)],_0x29d6d6(0x1a5),_0x599933));}async[_0x48a11d(0x18f)](_0xd78a71,_0x32d12c,_0x2e33e4,_0xacb0c1,_0x516669){const _0x21977b=_0x48a11d,_0xcfd943={'method':_0x21977b(0x1ad),'headers':await this[_0x21977b(0x1b5)](this[_0x21977b(0x199)],_0x516669),'body':JSON[_0x21977b(0x174)]({..._0xd78a71,'model':_0x32d12c,'stream':_0x2e33e4}),'signal':this[_0x21977b(0x19b)][_0x21977b(0x177)]},_0x40489a=await fetch(this[_0x21977b(0x1c0)],_0xcfd943);_0x2e33e4?await this[_0x21977b(0x17c)](_0x40489a,_0x32d12c,_0xacb0c1):await this[_0x21977b(0x198)](_0x40489a,_0x32d12c,_0xacb0c1);}async[_0x48a11d(0x1b0)](_0x18b66b,_0x283ab4,_0x2880f8,_0x14fa66){const _0x37b4e3=_0x48a11d,_0x14b20f=new _0x2f6856(this[_0x37b4e3(0x18d)]),_0x22e77e={'body':JSON[_0x37b4e3(0x174)](_0x18b66b),'contentType':_0x37b4e3(0x19c),'accept':_0x37b4e3(0x19c),'modelId':_0x283ab4};let _0x2d1a9f;if(_0x2880f8){const _0x792ee4=new _0x5d91e0(_0x22e77e);_0x2d1a9f=await _0x14b20f[_0x37b4e3(0x191)](_0x792ee4,{'abortSignal':this[_0x37b4e3(0x19b)][_0x37b4e3(0x177)]}),await this[_0x37b4e3(0x1c6)](_0x2d1a9f,_0x283ab4,_0x14fa66);}else{const _0x5c62c5=new _0x473960(_0x22e77e);_0x2d1a9f=await _0x14b20f[_0x37b4e3(0x191)](_0x5c62c5,{'abortSignal':this[_0x37b4e3(0x19b)][_0x37b4e3(0x177)]}),await this[_0x37b4e3(0x198)](_0x2d1a9f,_0x283ab4,_0x14fa66);}}async[_0x48a11d(0x1c6)](_0x33eb4f,_0x4e9536,_0x3b413a){const _0x362a2d=_0x48a11d,_0x1b528a=_0x33eb4f[_0x362a2d(0x189)],_0x4dd939=new TextDecoder(_0x362a2d(0x182));let _0x3cb9b7='';for await(const _0x539085 of _0x1b528a)if(_0x539085[_0x362a2d(0x1a4)]){const _0xfd0ce=_0x4dd939[_0x362a2d(0x18a)](_0x539085[_0x362a2d(0x1a4)][_0x362a2d(0x1c3)]),_0x2ac6ef=JSON[_0x362a2d(0x1ae)](_0xfd0ce);_0x3cb9b7+=this[_0x362a2d(0x1c1)](_0x2ac6ef,_0x4e9536),_0x3b413a(_0x3cb9b7);}return Promise[_0x362a2d(0x187)]();}async[_0x48a11d(0x17c)](_0x6fb13c,_0x133adb,_0x5c6b96){const _0xdf2b26=_0x48a11d,_0xd880b5=_0x6fb13c[_0xdf2b26(0x189)],_0x20ac8b=new TextDecoder(_0xdf2b26(0x182)),_0x198bc1=_0xd880b5[_0xdf2b26(0x192)]();let _0x365679='',_0x47959e='',_0x4ad735=!0x1;for(;!_0x4ad735;){const {done:_0x145591,value:_0x5787be}=await _0x198bc1[_0xdf2b26(0x1a9)]();if(_0x4ad735=_0x145591,_0x4ad735)break;const _0x49505d=(_0x365679+_0x20ac8b[_0xdf2b26(0x18a)](_0x5787be))[_0xdf2b26(0x175)]('\x0a')[_0xdf2b26(0x188)](_0x5e78cd=>{const _0x477a6e=_0xdf2b26;try{return _0x365679='',JSON[_0x477a6e(0x1ae)](_0x5e78cd);}catch(_0x4f423e){return _0x365679=_0x5e78cd,null;}})[_0xdf2b26(0x1ba)](_0x5c2171=>null!==_0x5c2171);_0x49505d[_0xdf2b26(0x1b4)]&&(_0x47959e+=_0x49505d[_0xdf2b26(0x188)](_0x1f1ab4=>this[_0xdf2b26(0x1c1)](_0x1f1ab4,_0x133adb))[_0xdf2b26(0x1ac)](''),_0x5c6b96(_0x47959e));}return Promise[_0xdf2b26(0x187)]();}async[_0x48a11d(0x198)](_0x35792b,_0x711b4e,_0x3e8e5a){const _0x417a1a=_0x48a11d;let _0x14aa9a;return _0x14aa9a=_0x35792b instanceof Response?await _0x35792b[_0x417a1a(0x1a1)]():JSON[_0x417a1a(0x1ae)](Buffer[_0x417a1a(0x18b)](_0x35792b[_0x417a1a(0x189)])[_0x417a1a(0x18c)](_0x417a1a(0x178))),(_0x3e8e5a(this[_0x417a1a(0x1c1)](_0x14aa9a,_0x711b4e)),Promise[_0x417a1a(0x187)]());}[_0x48a11d(0x1c1)](_0x501bc3,_0x46f6d7){const _0x5605a3=_0x48a11d;switch(this[_0x5605a3(0x1c5)](_0x46f6d7)){case _0x5605a3(0x17d):return _0x501bc3[_0x5605a3(0x184)];case _0x5605a3(0x1b9):return _0x501bc3[_0x5605a3(0x193)][0x0][_0x5605a3(0x1b6)][_0x5605a3(0x1b3)];case _0x5605a3(0x1c4):return _0x501bc3[_0x5605a3(0x1a8)][0x0][_0x5605a3(0x1b3)];case _0x5605a3(0x19e):return _0x501bc3[_0x5605a3(0x1b2)];}}}
|