@activepieces/piece-mistral-ai 0.2.1 → 0.2.3
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/package.json +4 -4
- package/src/i18n/de.json +13 -1
- package/src/i18n/es.json +13 -1
- package/src/i18n/fr.json +13 -1
- package/src/i18n/ja.json +13 -1
- package/src/i18n/nl.json +13 -1
- package/src/i18n/pt.json +13 -1
- package/src/i18n/translation.json +10 -28
- package/src/i18n/zh.json +13 -1
- package/src/lib/actions/create-chat-completion.d.ts.map +1 -1
- package/src/lib/actions/create-chat-completion.js +1 -0
- package/src/lib/actions/create-chat-completion.js.map +1 -1
- package/src/lib/actions/create-embeddings.d.ts.map +1 -1
- package/src/lib/actions/create-embeddings.js +1 -0
- package/src/lib/actions/create-embeddings.js.map +1 -1
- package/src/lib/actions/list-models.d.ts.map +1 -1
- package/src/lib/actions/list-models.js +1 -0
- package/src/lib/actions/list-models.js.map +1 -1
- package/src/lib/actions/run-ocr.d.ts.map +1 -1
- package/src/lib/actions/run-ocr.js +1 -0
- package/src/lib/actions/run-ocr.js.map +1 -1
- package/src/lib/actions/upload-file.d.ts.map +1 -1
- package/src/lib/actions/upload-file.js +1 -0
- package/src/lib/actions/upload-file.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/piece-mistral-ai",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"types": "./src/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"lint": "eslint 'src/**/*.ts'"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@activepieces/pieces-common": "0.12.
|
|
12
|
-
"@activepieces/pieces-framework": "0.
|
|
13
|
-
"@activepieces/shared": "0.
|
|
11
|
+
"@activepieces/pieces-common": "0.12.4",
|
|
12
|
+
"@activepieces/pieces-framework": "0.30.0",
|
|
13
|
+
"@activepieces/shared": "0.92.0",
|
|
14
14
|
"form-data": "4.0.4",
|
|
15
15
|
"tslib": "2.6.2"
|
|
16
16
|
}
|
package/src/i18n/de.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"Mistral AI provides state-of-the-art open-weight and hosted language models for text generation, embeddings, and reasoning tasks.": "Mistral AI bietet hochmoderne offene und gehostete Sprachmodelle für Textgeneration, Einbettung und Argumentationsaufgaben.",
|
|
3
|
-
"You can obtain your API key from the Mistral AI dashboard. Go to https://console.mistral.ai, generate an API key, and paste it here.": "Du kannst deinen API-Schlüssel über das Mistral KI-Dashboard erhalten. Gehe zu https://console.mistral.ai, generiere einen API-Schlüssel und füge ihn hier ein.",
|
|
4
3
|
"Ask Mistral": "Mistral fragen",
|
|
5
4
|
"Create Embeddings": "Einbettungen erstellen",
|
|
6
5
|
"Upload File": "Datei hochladen",
|
|
6
|
+
"Run OCR": "OCR ausführen",
|
|
7
7
|
"List Models": "Listenmodelle",
|
|
8
8
|
"Custom API Call": "Eigener API-Aufruf",
|
|
9
9
|
"Ask Mistral anything you want!": "Fragen Sie Mistral was Sie wollen!",
|
|
10
10
|
"Creates new embedding in Mistral AI.": "Erstellt neue Einbettung in Mistral AI.",
|
|
11
11
|
"Upload a file to Mistral AI (e.g., for fine-tuning or context storage).": "Laden Sie eine Datei auf Mistral AI hoch (z.B. für Feineinstellungen oder Kontextspeicher).",
|
|
12
|
+
"Extract text from PDFs and images using mistral-ocr-latest. To OCR a file from a previous step, run Upload File first (with purpose=ocr) and pass the returned id here.": "Extrahieren Sie Text aus PDFs und Bildern mit mistral-ocr-neuesten. Um eine Datei aus einem vorherigen Schritt zu OCR zu erstellen, starten Sie zuerst die Datei hochladen (mit purpose=ocr) und übergeben die zurückgegebene ID hier.",
|
|
12
13
|
"Retrieves a list of available Mistral AI models.": "Ruft eine Liste der verfügbaren Mistral AI Modelle ab.",
|
|
13
14
|
"Make a custom API call to a specific endpoint": "Einen benutzerdefinierten API-Aufruf an einen bestimmten Endpunkt machen",
|
|
14
15
|
"Model": "Modell",
|
|
@@ -21,6 +22,10 @@
|
|
|
21
22
|
"Input": "Eingabe",
|
|
22
23
|
"File": "Datei",
|
|
23
24
|
"Purpose": "Zweck",
|
|
25
|
+
"Document Source": "Dokumentquelle",
|
|
26
|
+
"Document": "Dokument",
|
|
27
|
+
"Pages": "Seiten",
|
|
28
|
+
"Include Image Base64": "Bild Base64 einbeziehen",
|
|
24
29
|
"Method": "Methode",
|
|
25
30
|
"Headers": "Kopfzeilen",
|
|
26
31
|
"Query Parameters": "Abfrageparameter",
|
|
@@ -36,11 +41,18 @@
|
|
|
36
41
|
"The input text for which to create an embedding.": "Der Eingabetext, für den eine Einbettung erstellt werden soll.",
|
|
37
42
|
"The file to upload (max 512MB).For fine tuning purspose provide .jsonl file.": "Die hochzuladende Datei (max. 512MB).Für Feintuning stellt die Datei .jsonl zur Verfügung.",
|
|
38
43
|
"Purpose of the file.": "Zweck der Datei.",
|
|
44
|
+
"Where the document or image to OCR comes from.": "Woher das Dokument oder Bild für OCR stammt.",
|
|
45
|
+
"Optional zero-based page indices to process. Leave empty for all pages.": "Optionale Null-basierte Seitenindizes zum Verarbeiten. Leer lassen für alle Seiten.",
|
|
46
|
+
"Return embedded images encoded as base64 alongside the Markdown.": "Gibt eingebettete Bilder, die neben dem Markdown als base64 kodiert sind, zurück.",
|
|
39
47
|
"Authorization headers are injected automatically from your connection.": "Autorisierungs-Header werden automatisch von Ihrer Verbindung injiziert.",
|
|
40
48
|
"Enable for files like PDFs, images, etc.": "Aktivieren für Dateien wie PDFs, Bilder usw.",
|
|
41
49
|
"fine-tune": "feintune",
|
|
42
50
|
"batch": "stapeln",
|
|
43
51
|
"ocr": "okr",
|
|
52
|
+
"mistral-ocr-latest (Recommended)": "mistral-ocr-neueste (empfohlen)",
|
|
53
|
+
"mistral-ocr-2505": "mistral-ocr-2505",
|
|
54
|
+
"URL": "URL",
|
|
55
|
+
"Mistral file ID (uploaded earlier with purpose=ocr)": "Mistral Datei ID (früher mit purpose=ocr hochgeladen)",
|
|
44
56
|
"GET": "ERHALTEN",
|
|
45
57
|
"POST": "POST",
|
|
46
58
|
"PATCH": "PATCH",
|
package/src/i18n/es.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"Mistral AI provides state-of-the-art open-weight and hosted language models for text generation, embeddings, and reasoning tasks.": "Mistral AI proporciona modernos modelos de lenguaje de peso abierto y hospedado para la generación de texto, incrustaciones y tareas de razonamiento.",
|
|
3
|
-
"You can obtain your API key from the Mistral AI dashboard. Go to https://console.mistral.ai, generate an API key, and paste it here.": "Puedes obtener tu clave API del panel de control de IA Mistral. Ve a https://console.mistral.ai, genera una clave API y pégala aquí.",
|
|
4
3
|
"Ask Mistral": "Preguntar Mistral",
|
|
5
4
|
"Create Embeddings": "Crear incrustaciones",
|
|
6
5
|
"Upload File": "Subir archivo",
|
|
6
|
+
"Run OCR": "Ejecutar OCR",
|
|
7
7
|
"List Models": "Lista de modelos",
|
|
8
8
|
"Custom API Call": "Llamada API personalizada",
|
|
9
9
|
"Ask Mistral anything you want!": "Pregúntele a Mistral lo que quieras!",
|
|
10
10
|
"Creates new embedding in Mistral AI.": "Crea una nueva incrustación en Mistral AI.",
|
|
11
11
|
"Upload a file to Mistral AI (e.g., for fine-tuning or context storage).": "Subir un archivo a Mistral AI (por ejemplo, para ajustar o almacenar el contexto).",
|
|
12
|
+
"Extract text from PDFs and images using mistral-ocr-latest. To OCR a file from a previous step, run Upload File first (with purpose=ocr) and pass the returned id here.": "Extraer texto de PDFs e imágenes usando mistral-ocr-latest. Para OCR un archivo de un paso anterior, ejecute Upload File primero (con propósito=ocr) y pase el id devuelto aquí.",
|
|
12
13
|
"Retrieves a list of available Mistral AI models.": "Recupere una lista de modelos disponibles de IA Mistral.",
|
|
13
14
|
"Make a custom API call to a specific endpoint": "Hacer una llamada API personalizada a un extremo específico",
|
|
14
15
|
"Model": "Modelo",
|
|
@@ -21,6 +22,10 @@
|
|
|
21
22
|
"Input": "Input",
|
|
22
23
|
"File": "Archivo",
|
|
23
24
|
"Purpose": "Propósito",
|
|
25
|
+
"Document Source": "Origen del documento",
|
|
26
|
+
"Document": "Documento",
|
|
27
|
+
"Pages": "Páginas",
|
|
28
|
+
"Include Image Base64": "Incluye imagen Base64",
|
|
24
29
|
"Method": "Método",
|
|
25
30
|
"Headers": "Encabezados",
|
|
26
31
|
"Query Parameters": "Parámetros de consulta",
|
|
@@ -36,11 +41,18 @@
|
|
|
36
41
|
"The input text for which to create an embedding.": "El texto de entrada para el que crear una incrustación.",
|
|
37
42
|
"The file to upload (max 512MB).For fine tuning purspose provide .jsonl file.": "El archivo a cargar (máx. 512MB).Para fina sintonización a efectos proporcionar archivo .jsonl.",
|
|
38
43
|
"Purpose of the file.": "Propósito del archivo.",
|
|
44
|
+
"Where the document or image to OCR comes from.": "De dónde proviene el documento o la imagen a OCR.",
|
|
45
|
+
"Optional zero-based page indices to process. Leave empty for all pages.": "Indices opcionales de página de cero para procesar. Dejar en blanco para todas las páginas.",
|
|
46
|
+
"Return embedded images encoded as base64 alongside the Markdown.": "Devuelve imágenes embebidas codificadas como base64 junto al Markdown.",
|
|
39
47
|
"Authorization headers are injected automatically from your connection.": "Las cabeceras de autorización se inyectan automáticamente desde tu conexión.",
|
|
40
48
|
"Enable for files like PDFs, images, etc.": "Activar para archivos como PDFs, imágenes, etc.",
|
|
41
49
|
"fine-tune": "afinar",
|
|
42
50
|
"batch": "lote",
|
|
43
51
|
"ocr": "ocr",
|
|
52
|
+
"mistral-ocr-latest (Recommended)": "mistral-ocr-último (Recomendado)",
|
|
53
|
+
"mistral-ocr-2505": "mistral-ocr-2505",
|
|
54
|
+
"URL": "URL",
|
|
55
|
+
"Mistral file ID (uploaded earlier with purpose=ocr)": "ID del archivo Mistral (subido anteriormente con propósito=ocr)",
|
|
44
56
|
"GET": "RECOGER",
|
|
45
57
|
"POST": "POST",
|
|
46
58
|
"PATCH": "PATCH",
|
package/src/i18n/fr.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"Mistral AI provides state-of-the-art open-weight and hosted language models for text generation, embeddings, and reasoning tasks.": "Mistral AI fournit des modèles de langage à poids ouvert et hébergé à la fine pointe de la technologie pour la génération de texte, l'intégration et les tâches de raisonnement.",
|
|
3
|
-
"You can obtain your API key from the Mistral AI dashboard. Go to https://console.mistral.ai, generate an API key, and paste it here.": "Vous pouvez obtenir votre clé API depuis le tableau de bord Mistral IA. Allez sur https://console.mistral.ai, générez une clé API et collez-la ici.",
|
|
4
3
|
"Ask Mistral": "Demander Mistral",
|
|
5
4
|
"Create Embeddings": "Créer des incorporations",
|
|
6
5
|
"Upload File": "Charger un fichier",
|
|
6
|
+
"Run OCR": "Exécuter la ROC",
|
|
7
7
|
"List Models": "Lister les modèles",
|
|
8
8
|
"Custom API Call": "Appel API personnalisé",
|
|
9
9
|
"Ask Mistral anything you want!": "Demandez à Mistral ce que vous voulez!",
|
|
10
10
|
"Creates new embedding in Mistral AI.": "Crée une nouvelle intégration dans Mistral AI.",
|
|
11
11
|
"Upload a file to Mistral AI (e.g., for fine-tuning or context storage).": "Télécharger un fichier sur Mistral AI (par exemple, pour affiner ou stocker le contexte).",
|
|
12
|
+
"Extract text from PDFs and images using mistral-ocr-latest. To OCR a file from a previous step, run Upload File first (with purpose=ocr) and pass the returned id here.": "Extraire du texte des PDFs et des images en utilisant mistral-ocr-latest. Pour OCR un fichier depuis une étape précédente, exécutez d'abord Upload File (avec purpose=ocr) et passez l'id retourné ici.",
|
|
12
13
|
"Retrieves a list of available Mistral AI models.": "Récupère une liste des modèles Mistral AI disponibles.",
|
|
13
14
|
"Make a custom API call to a specific endpoint": "Passez un appel API personnalisé à un point de terminaison spécifique",
|
|
14
15
|
"Model": "Modélisation",
|
|
@@ -21,6 +22,10 @@
|
|
|
21
22
|
"Input": "Entrée",
|
|
22
23
|
"File": "Ficher",
|
|
23
24
|
"Purpose": "Objectif",
|
|
25
|
+
"Document Source": "Source du document",
|
|
26
|
+
"Document": "Document",
|
|
27
|
+
"Pages": "Pages",
|
|
28
|
+
"Include Image Base64": "Inclure Image Base64",
|
|
24
29
|
"Method": "Méthode",
|
|
25
30
|
"Headers": "En-têtes",
|
|
26
31
|
"Query Parameters": "Paramètres de requête",
|
|
@@ -36,11 +41,18 @@
|
|
|
36
41
|
"The input text for which to create an embedding.": "Le texte d'entrée pour lequel il faut créer une incorporation.",
|
|
37
42
|
"The file to upload (max 512MB).For fine tuning purspose provide .jsonl file.": "Le fichier à télécharger (max 512MB).Pour un réglage fin purspose fournir fichier .jsonl.",
|
|
38
43
|
"Purpose of the file.": "Objectif du fichier.",
|
|
44
|
+
"Where the document or image to OCR comes from.": "D'où vient le document ou l'image de la ROC.",
|
|
45
|
+
"Optional zero-based page indices to process. Leave empty for all pages.": "Indices de page à traiter en option à partir de zéro. Laisser vide pour toutes les pages.",
|
|
46
|
+
"Return embedded images encoded as base64 alongside the Markdown.": "Renvoie les images embarquées encodées en base64 à côté du Markdown.",
|
|
39
47
|
"Authorization headers are injected automatically from your connection.": "Les en-têtes d'autorisation sont injectés automatiquement à partir de votre connexion.",
|
|
40
48
|
"Enable for files like PDFs, images, etc.": "Activer pour les fichiers comme les PDFs, les images, etc.",
|
|
41
49
|
"fine-tune": "fine-tune",
|
|
42
50
|
"batch": "lot",
|
|
43
51
|
"ocr": "ocr",
|
|
52
|
+
"mistral-ocr-latest (Recommended)": "mistral-ocr-latest (Recommandé)",
|
|
53
|
+
"mistral-ocr-2505": "mistral-ocr-2505",
|
|
54
|
+
"URL": "URL",
|
|
55
|
+
"Mistral file ID (uploaded earlier with purpose=ocr)": "ID du fichier Mistral (téléchargé plus tôt avec purpose=ocr)",
|
|
44
56
|
"GET": "OBTENIR",
|
|
45
57
|
"POST": "POSTER",
|
|
46
58
|
"PATCH": "PATCH",
|
package/src/i18n/ja.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"Mistral AI provides state-of-the-art open-weight and hosted language models for text generation, embeddings, and reasoning tasks.": "ミストラルAIは、テキスト生成、埋め込み、推論タスクのための最先端のオープンウェイトおよびホスト言語モデルを提供します。",
|
|
3
|
-
"You can obtain your API key from the Mistral AI dashboard. Go to https://console.mistral.ai, generate an API key, and paste it here.": "Mistral AIダッシュボードからAPIキーを取得することができます。https://console.mistral.aiに移動し、APIキーを生成し、ここに貼り付けてください。",
|
|
4
3
|
"Ask Mistral": "ミストラルに聞く",
|
|
5
4
|
"Create Embeddings": "埋め込みを作成",
|
|
6
5
|
"Upload File": "ファイルをアップロード",
|
|
6
|
+
"Run OCR": "OCR を実行",
|
|
7
7
|
"List Models": "モデル一覧",
|
|
8
8
|
"Custom API Call": "カスタムAPI通話",
|
|
9
9
|
"Ask Mistral anything you want!": "あなたが望むものは何でもミストラルに聞いてください!",
|
|
10
10
|
"Creates new embedding in Mistral AI.": "Mistral AI に新しい埋め込みを作成します。",
|
|
11
11
|
"Upload a file to Mistral AI (e.g., for fine-tuning or context storage).": "Mistral AI にファイルをアップロードします(例えば、微調整やコンテキストストレージなど)。",
|
|
12
|
+
"Extract text from PDFs and images using mistral-ocr-latest. To OCR a file from a previous step, run Upload File first (with purpose=ocr) and pass the returned id here.": "mistral-ocr-latestを使用してPDFや画像からテキストを抽出します。 前のステップのファイルをOCRにするには、まずUpload File (目的 = ocr) を実行し、返されたIDをここに渡します。",
|
|
12
13
|
"Retrieves a list of available Mistral AI models.": "利用可能なミストラルAIモデルのリストを取得します。",
|
|
13
14
|
"Make a custom API call to a specific endpoint": "特定のエンドポイントへのカスタム API コールを実行します。",
|
|
14
15
|
"Model": "モデル",
|
|
@@ -21,6 +22,10 @@
|
|
|
21
22
|
"Input": "Input",
|
|
22
23
|
"File": "ファイル",
|
|
23
24
|
"Purpose": "目的",
|
|
25
|
+
"Document Source": "ドキュメント ソース",
|
|
26
|
+
"Document": "ドキュメント",
|
|
27
|
+
"Pages": "ページ",
|
|
28
|
+
"Include Image Base64": "画像ベース64を含める",
|
|
24
29
|
"Method": "方法",
|
|
25
30
|
"Headers": "ヘッダー",
|
|
26
31
|
"Query Parameters": "クエリパラメータ",
|
|
@@ -36,11 +41,18 @@
|
|
|
36
41
|
"The input text for which to create an embedding.": "埋め込みを作成する入力テキスト。",
|
|
37
42
|
"The file to upload (max 512MB).For fine tuning purspose provide .jsonl file.": "アップロードするファイル(最大 512MB)。パープルを微調整するには、.jsonl ファイルを提供します。",
|
|
38
43
|
"Purpose of the file.": "ファイルの目的。",
|
|
44
|
+
"Where the document or image to OCR comes from.": "OCRへのドキュメントまたは画像がどこから来るか。",
|
|
45
|
+
"Optional zero-based page indices to process. Leave empty for all pages.": "処理する任意のゼロベースのページインデックス。すべてのページに対して空のままにします。",
|
|
46
|
+
"Return embedded images encoded as base64 alongside the Markdown.": "Base64 としてエンコードされた埋め込み画像を Markdown とともに返します。",
|
|
39
47
|
"Authorization headers are injected automatically from your connection.": "認証ヘッダは接続から自動的に注入されます。",
|
|
40
48
|
"Enable for files like PDFs, images, etc.": "PDF、画像などのファイルを有効にする",
|
|
41
49
|
"fine-tune": "微調整",
|
|
42
50
|
"batch": "一括処理",
|
|
43
51
|
"ocr": "ocr",
|
|
52
|
+
"mistral-ocr-latest (Recommended)": "mistral-ocr-latest (推奨)",
|
|
53
|
+
"mistral-ocr-2505": "mistral-ocr-2505",
|
|
54
|
+
"URL": "URL",
|
|
55
|
+
"Mistral file ID (uploaded earlier with purpose=ocr)": "ミストラルファイルID(以前に目的=分割でアップロード)",
|
|
44
56
|
"GET": "取得",
|
|
45
57
|
"POST": "POST",
|
|
46
58
|
"PATCH": "PATCH",
|
package/src/i18n/nl.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"Mistral AI provides state-of-the-art open-weight and hosted language models for text generation, embeddings, and reasoning tasks.": "Mistral AI biedt de meest geavanceerde vormen van open gewicht en gehoste talenmodellen voor het genereren van teksten, embedden en met redenen omkleden.",
|
|
3
|
-
"You can obtain your API key from the Mistral AI dashboard. Go to https://console.mistral.ai, generate an API key, and paste it here.": "Je kunt je API-sleutel verkrijgen op het dashboard van Mistral AI. Ga naar https://console.mistral.ai, genereer een API-sleutel en plak deze hier.",
|
|
4
3
|
"Ask Mistral": "Vraag Mistral",
|
|
5
4
|
"Create Embeddings": "Maak inbeddingen",
|
|
6
5
|
"Upload File": "Bestand uploaden",
|
|
6
|
+
"Run OCR": "Uitvoeren OCR",
|
|
7
7
|
"List Models": "Lijst modellen",
|
|
8
8
|
"Custom API Call": "Custom API Call",
|
|
9
9
|
"Ask Mistral anything you want!": "Vraag Mistral wat je maar wil!",
|
|
10
10
|
"Creates new embedding in Mistral AI.": "Maakt een nieuwe embedding in Mistral AI.",
|
|
11
11
|
"Upload a file to Mistral AI (e.g., for fine-tuning or context storage).": "Upload een bestand naar Mistral AI (bijv. voor fine-tuning of context opslag).",
|
|
12
|
+
"Extract text from PDFs and images using mistral-ocr-latest. To OCR a file from a previous step, run Upload File first (with purpose=ocr) and pass the returned id here.": "Verwijder tekst uit PDF's en afbeeldingen met behulp van mistral-ocr-latest. Voer het uploaden van een bestand (met doel=ocr) eerst uit voor OCR en geef het geretourneerde ID hier in.",
|
|
12
13
|
"Retrieves a list of available Mistral AI models.": "Haal een lijst op met beschikbare Mistral AI modellen.",
|
|
13
14
|
"Make a custom API call to a specific endpoint": "Maak een aangepaste API call naar een specifiek eindpunt",
|
|
14
15
|
"Model": "Model",
|
|
@@ -21,6 +22,10 @@
|
|
|
21
22
|
"Input": "Input",
|
|
22
23
|
"File": "Bestand",
|
|
23
24
|
"Purpose": "Doel",
|
|
25
|
+
"Document Source": "Document bron",
|
|
26
|
+
"Document": "Document",
|
|
27
|
+
"Pages": "Pagina's",
|
|
28
|
+
"Include Image Base64": "Base64 afbeelding toevoegen",
|
|
24
29
|
"Method": "Methode",
|
|
25
30
|
"Headers": "Kopteksten",
|
|
26
31
|
"Query Parameters": "Query parameters",
|
|
@@ -36,11 +41,18 @@
|
|
|
36
41
|
"The input text for which to create an embedding.": "De invoertekst waarvoor u een embedding wilt maken.",
|
|
37
42
|
"The file to upload (max 512MB).For fine tuning purspose provide .jsonl file.": "Het te uploaden bestand (max 512MB). Voor het afstemmen van purspose geeft u .jsonl bestand op.",
|
|
38
43
|
"Purpose of the file.": "Doel van het bestand.",
|
|
44
|
+
"Where the document or image to OCR comes from.": "Waar het document of de afbeelding bij OCR vandaan komen.",
|
|
45
|
+
"Optional zero-based page indices to process. Leave empty for all pages.": "Optionele nulgebaseerde pagina-indexen te verwerken. Laat leeg voor alle pagina's.",
|
|
46
|
+
"Return embedded images encoded as base64 alongside the Markdown.": "Retourneer ingesloten afbeeldingen gecodeerd als base64 naast de Markdown.",
|
|
39
47
|
"Authorization headers are injected automatically from your connection.": "Autorisatie headers worden automatisch geïnjecteerd vanuit uw verbinding.",
|
|
40
48
|
"Enable for files like PDFs, images, etc.": "Inschakelen voor bestanden zoals PDF's, afbeeldingen etc.",
|
|
41
49
|
"fine-tune": "fine-tune",
|
|
42
50
|
"batch": "batch",
|
|
43
51
|
"ocr": "ocr",
|
|
52
|
+
"mistral-ocr-latest (Recommended)": "mistral-ocr-est (aanbevolen)",
|
|
53
|
+
"mistral-ocr-2505": "mistral-ocr-2505",
|
|
54
|
+
"URL": "URL",
|
|
55
|
+
"Mistral file ID (uploaded earlier with purpose=ocr)": "Mistral file ID (eerder geüpload met doel=ocr)",
|
|
44
56
|
"GET": "KRIJG",
|
|
45
57
|
"POST": "POSTE",
|
|
46
58
|
"PATCH": "BEKIJK",
|
package/src/i18n/pt.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"Mistral AI provides state-of-the-art open-weight and hosted language models for text generation, embeddings, and reasoning tasks.": "Mistral AI fornece modelos de linguagem com peso aberto e hospedados para a geração de texto, incorporação e tarefas de raciocínio.",
|
|
3
|
-
"You can obtain your API key from the Mistral AI dashboard. Go to https://console.mistral.ai, generate an API key, and paste it here.": "Você pode obter sua chave de API a partir do painel de controle de IA do Mistral. Vá para https://console.mistral.ai, gere uma chave de API e cole-a aqui.",
|
|
4
3
|
"Ask Mistral": "Pergunte ao Mistral",
|
|
5
4
|
"Create Embeddings": "Criar incorporações",
|
|
6
5
|
"Upload File": "Enviar Arquivo",
|
|
6
|
+
"Run OCR": "Executar OCR",
|
|
7
7
|
"List Models": "Listar Modelos",
|
|
8
8
|
"Custom API Call": "Chamada de API personalizada",
|
|
9
9
|
"Ask Mistral anything you want!": "Pergunte ao Mistral o que você quiser!",
|
|
10
10
|
"Creates new embedding in Mistral AI.": "Cria uma nova inserção no Mistral AI.",
|
|
11
11
|
"Upload a file to Mistral AI (e.g., for fine-tuning or context storage).": "Envie um arquivo para Mistral AI (por exemplo, para ajuste fino ou armazenamento contextual).",
|
|
12
|
+
"Extract text from PDFs and images using mistral-ocr-latest. To OCR a file from a previous step, run Upload File first (with purpose=ocr) and pass the returned id here.": "Extraia texto de PDFs e imagens usando mistral-ocr-latest. Para OCR um arquivo de um passo anterior, execute Upload File primeiro (com purpose=ocr) e passe o id retornado aqui.",
|
|
12
13
|
"Retrieves a list of available Mistral AI models.": "Recupera uma lista de modelos Mistral IA disponíveis.",
|
|
13
14
|
"Make a custom API call to a specific endpoint": "Faça uma chamada de API personalizada para um ponto de extremidade específico",
|
|
14
15
|
"Model": "Modelo",
|
|
@@ -21,6 +22,10 @@
|
|
|
21
22
|
"Input": "Entrada",
|
|
22
23
|
"File": "Arquivo",
|
|
23
24
|
"Purpose": "Objetivo",
|
|
25
|
+
"Document Source": "Documento de Origem",
|
|
26
|
+
"Document": "Documento",
|
|
27
|
+
"Pages": "páginas",
|
|
28
|
+
"Include Image Base64": "Incluir Imagem Base64",
|
|
24
29
|
"Method": "Método",
|
|
25
30
|
"Headers": "Cabeçalhos",
|
|
26
31
|
"Query Parameters": "Parâmetros da consulta",
|
|
@@ -36,11 +41,18 @@
|
|
|
36
41
|
"The input text for which to create an embedding.": "O texto de entrada para o qual criar uma incorporação.",
|
|
37
42
|
"The file to upload (max 512MB).For fine tuning purspose provide .jsonl file.": "O arquivo a ser carregado (máx. 512MB).Para purspose de ajuste precisa fornecer arquivo .jsonl.",
|
|
38
43
|
"Purpose of the file.": "Objetivo do arquivo.",
|
|
44
|
+
"Where the document or image to OCR comes from.": "De onde vem o documento ou a imagem do OCR.",
|
|
45
|
+
"Optional zero-based page indices to process. Leave empty for all pages.": "Processar índices de página baseados em zero. Deixe em branco para todas as páginas.",
|
|
46
|
+
"Return embedded images encoded as base64 alongside the Markdown.": "Retorne imagens incorporadas codificadas como base64 ao lado do Markdown.",
|
|
39
47
|
"Authorization headers are injected automatically from your connection.": "Os cabeçalhos de autorização são inseridos automaticamente a partir da sua conexão.",
|
|
40
48
|
"Enable for files like PDFs, images, etc.": "Habilitar para arquivos como PDFs, imagens, etc.",
|
|
41
49
|
"fine-tune": "afino",
|
|
42
50
|
"batch": "lote",
|
|
43
51
|
"ocr": "cr",
|
|
52
|
+
"mistral-ocr-latest (Recommended)": "mistral-ocr-latest (Recomendado)",
|
|
53
|
+
"mistral-ocr-2505": "mistral-ocr-2505",
|
|
54
|
+
"URL": "URL:",
|
|
55
|
+
"Mistral file ID (uploaded earlier with purpose=ocr)": "ID do arquivo Mistral (carregado anteriormente com purpose=ocr)",
|
|
44
56
|
"GET": "OBTER",
|
|
45
57
|
"POST": "POSTAR",
|
|
46
58
|
"PATCH": "COMPRAR",
|
|
@@ -1,26 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"Mistral AI provides state-of-the-art open-weight and hosted language models for text generation, embeddings, and reasoning tasks.": "Mistral AI provides state-of-the-art open-weight and hosted language models for text generation, embeddings, and reasoning tasks.",
|
|
3
|
-
"You can obtain your API key from the Mistral AI dashboard. Go to https://console.mistral.ai, generate an API key, and paste it here.": "You can obtain your API key from the Mistral AI dashboard. Go to https://console.mistral.ai, generate an API key, and paste it here.",
|
|
4
|
-
"Cloudflare AI Gateway": "Cloudflare AI Gateway",
|
|
5
|
-
"Route Mistral calls through your Cloudflare AI Gateway. Provide a Mistral API key (key-in-request mode) or leave it blank if your gateway has Mistral configured as a stored key (BYOK).": "Route Mistral calls through your Cloudflare AI Gateway. Provide a Mistral API key (key-in-request mode) or leave it blank if your gateway has Mistral configured as a stored key (BYOK).",
|
|
6
|
-
"Cloudflare Account ID": "Cloudflare Account ID",
|
|
7
|
-
"Your Cloudflare account ID (visible on the AI Gateway dashboard).": "Your Cloudflare account ID (visible on the AI Gateway dashboard).",
|
|
8
|
-
"Gateway ID": "Gateway ID",
|
|
9
|
-
"The slug of your AI Gateway (visible on the gateway settings page).": "The slug of your AI Gateway (visible on the gateway settings page).",
|
|
10
|
-
"Gateway Auth Token": "Gateway Auth Token",
|
|
11
|
-
"Optional. Required only if your gateway has authentication enabled. Sent as cf-aig-authorization.": "Optional. Required only if your gateway has authentication enabled. Sent as cf-aig-authorization.",
|
|
12
|
-
"Mistral API Key": "Mistral API Key",
|
|
13
|
-
"Optional. Provide your Mistral key for key-in-request mode. Leave blank if Cloudflare injects the key via stored credentials (BYOK).": "Optional. Provide your Mistral key for key-in-request mode. Leave blank if Cloudflare injects the key via stored credentials (BYOK).",
|
|
14
3
|
"Ask Mistral": "Ask Mistral",
|
|
15
4
|
"Create Embeddings": "Create Embeddings",
|
|
16
5
|
"Upload File": "Upload File",
|
|
17
6
|
"Run OCR": "Run OCR",
|
|
18
|
-
"Extract text from PDFs and images using mistral-ocr-latest. To OCR a file from a previous step, run Upload File first (with purpose=ocr) and pass the returned id here.": "Extract text from PDFs and images using mistral-ocr-latest. To OCR a file from a previous step, run Upload File first (with purpose=ocr) and pass the returned id here.",
|
|
19
7
|
"List Models": "List Models",
|
|
20
8
|
"Custom API Call": "Custom API Call",
|
|
21
9
|
"Ask Mistral anything you want!": "Ask Mistral anything you want!",
|
|
22
10
|
"Creates new embedding in Mistral AI.": "Creates new embedding in Mistral AI.",
|
|
23
11
|
"Upload a file to Mistral AI (e.g., for fine-tuning or context storage).": "Upload a file to Mistral AI (e.g., for fine-tuning or context storage).",
|
|
12
|
+
"Extract text from PDFs and images using mistral-ocr-latest. To OCR a file from a previous step, run Upload File first (with purpose=ocr) and pass the returned id here.": "Extract text from PDFs and images using mistral-ocr-latest. To OCR a file from a previous step, run Upload File first (with purpose=ocr) and pass the returned id here.",
|
|
24
13
|
"Retrieves a list of available Mistral AI models.": "Retrieves a list of available Mistral AI models.",
|
|
25
14
|
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
|
26
15
|
"Model": "Model",
|
|
@@ -33,6 +22,10 @@
|
|
|
33
22
|
"Input": "Input",
|
|
34
23
|
"File": "File",
|
|
35
24
|
"Purpose": "Purpose",
|
|
25
|
+
"Document Source": "Document Source",
|
|
26
|
+
"Document": "Document",
|
|
27
|
+
"Pages": "Pages",
|
|
28
|
+
"Include Image Base64": "Include Image Base64",
|
|
36
29
|
"Method": "Method",
|
|
37
30
|
"Headers": "Headers",
|
|
38
31
|
"Query Parameters": "Query Parameters",
|
|
@@ -48,29 +41,18 @@
|
|
|
48
41
|
"The input text for which to create an embedding.": "The input text for which to create an embedding.",
|
|
49
42
|
"The file to upload (max 512MB).For fine tuning purspose provide .jsonl file.": "The file to upload (max 512MB).For fine tuning purspose provide .jsonl file.",
|
|
50
43
|
"Purpose of the file.": "Purpose of the file.",
|
|
51
|
-
"Document Source": "Document Source",
|
|
52
44
|
"Where the document or image to OCR comes from.": "Where the document or image to OCR comes from.",
|
|
53
|
-
"URL": "URL",
|
|
54
|
-
"Mistral file ID (uploaded earlier with purpose=ocr)": "Mistral file ID (uploaded earlier with purpose=ocr)",
|
|
55
|
-
"Document": "Document",
|
|
56
|
-
"File ID": "File ID",
|
|
57
|
-
"A Mistral file ID returned from a prior Upload File step (purpose=ocr).": "A Mistral file ID returned from a prior Upload File step (purpose=ocr).",
|
|
58
|
-
"Document Type": "Document Type",
|
|
59
|
-
"Pick \"Image\" for PNG/JPG/WEBP, \"Document\" for PDFs.": "Pick \"Image\" for PNG/JPG/WEBP, \"Document\" for PDFs.",
|
|
60
|
-
"Document (PDF)": "Document (PDF)",
|
|
61
|
-
"Image": "Image",
|
|
62
|
-
"Public URL of the PDF or image to OCR.": "Public URL of the PDF or image to OCR.",
|
|
63
|
-
"Pages": "Pages",
|
|
64
45
|
"Optional zero-based page indices to process. Leave empty for all pages.": "Optional zero-based page indices to process. Leave empty for all pages.",
|
|
65
|
-
"Include Image Base64": "Include Image Base64",
|
|
66
46
|
"Return embedded images encoded as base64 alongside the Markdown.": "Return embedded images encoded as base64 alongside the Markdown.",
|
|
67
|
-
"mistral-ocr-latest (Recommended)": "mistral-ocr-latest (Recommended)",
|
|
68
|
-
"mistral-ocr-2505": "mistral-ocr-2505",
|
|
69
47
|
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
|
70
48
|
"Enable for files like PDFs, images, etc.": "Enable for files like PDFs, images, etc.",
|
|
71
49
|
"fine-tune": "fine-tune",
|
|
72
50
|
"batch": "batch",
|
|
73
51
|
"ocr": "ocr",
|
|
52
|
+
"mistral-ocr-latest (Recommended)": "mistral-ocr-latest (Recommended)",
|
|
53
|
+
"mistral-ocr-2505": "mistral-ocr-2505",
|
|
54
|
+
"URL": "URL",
|
|
55
|
+
"Mistral file ID (uploaded earlier with purpose=ocr)": "Mistral file ID (uploaded earlier with purpose=ocr)",
|
|
74
56
|
"GET": "GET",
|
|
75
57
|
"POST": "POST",
|
|
76
58
|
"PATCH": "PATCH",
|
|
@@ -81,4 +63,4 @@
|
|
|
81
63
|
"JSON": "JSON",
|
|
82
64
|
"Form Data": "Form Data",
|
|
83
65
|
"Raw": "Raw"
|
|
84
|
-
}
|
|
66
|
+
}
|
package/src/i18n/zh.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"Mistral AI provides state-of-the-art open-weight and hosted language models for text generation, embeddings, and reasoning tasks.": "Mistral AI provides state-of-the-art open-weight and hosted language models for text generation, embeddings, and reasoning tasks.",
|
|
3
|
-
"You can obtain your API key from the Mistral AI dashboard. Go to https://console.mistral.ai, generate an API key, and paste it here.": "You can obtain your API key from the Mistral AI dashboard. Go to https://console.mistral.ai, generate an API key, and paste it here.",
|
|
4
3
|
"Ask Mistral": "Ask Mistral",
|
|
5
4
|
"Create Embeddings": "Create Embeddings",
|
|
6
5
|
"Upload File": "Upload File",
|
|
6
|
+
"Run OCR": "Run OCR",
|
|
7
7
|
"List Models": "List Models",
|
|
8
8
|
"Custom API Call": "自定义 API 呼叫",
|
|
9
9
|
"Ask Mistral anything you want!": "Ask Mistral anything you want!",
|
|
10
10
|
"Creates new embedding in Mistral AI.": "Creates new embedding in Mistral AI.",
|
|
11
11
|
"Upload a file to Mistral AI (e.g., for fine-tuning or context storage).": "Upload a file to Mistral AI (e.g., for fine-tuning or context storage).",
|
|
12
|
+
"Extract text from PDFs and images using mistral-ocr-latest. To OCR a file from a previous step, run Upload File first (with purpose=ocr) and pass the returned id here.": "Extract text from PDFs and images using mistral-ocr-latest. To OCR a file from a previous step, run Upload File first (with purpose=ocr) and pass the returned id here.",
|
|
12
13
|
"Retrieves a list of available Mistral AI models.": "Retrieves a list of available Mistral AI models.",
|
|
13
14
|
"Make a custom API call to a specific endpoint": "将一个自定义 API 调用到一个特定的终点",
|
|
14
15
|
"Model": "Model",
|
|
@@ -21,6 +22,10 @@
|
|
|
21
22
|
"Input": "Input",
|
|
22
23
|
"File": "文件",
|
|
23
24
|
"Purpose": "Purpose",
|
|
25
|
+
"Document Source": "Document Source",
|
|
26
|
+
"Document": "Document",
|
|
27
|
+
"Pages": "Pages",
|
|
28
|
+
"Include Image Base64": "Include Image Base64",
|
|
24
29
|
"Method": "方法",
|
|
25
30
|
"Headers": "信头",
|
|
26
31
|
"Query Parameters": "查询参数",
|
|
@@ -36,11 +41,18 @@
|
|
|
36
41
|
"The input text for which to create an embedding.": "The input text for which to create an embedding.",
|
|
37
42
|
"The file to upload (max 512MB).For fine tuning purspose provide .jsonl file.": "The file to upload (max 512MB).For fine tuning purspose provide .jsonl file.",
|
|
38
43
|
"Purpose of the file.": "Purpose of the file.",
|
|
44
|
+
"Where the document or image to OCR comes from.": "Where the document or image to OCR comes from.",
|
|
45
|
+
"Optional zero-based page indices to process. Leave empty for all pages.": "Optional zero-based page indices to process. Leave empty for all pages.",
|
|
46
|
+
"Return embedded images encoded as base64 alongside the Markdown.": "Return embedded images encoded as base64 alongside the Markdown.",
|
|
39
47
|
"Authorization headers are injected automatically from your connection.": "授权头自动从您的连接中注入。",
|
|
40
48
|
"Enable for files like PDFs, images, etc.": "Enable for files like PDFs, images, etc.",
|
|
41
49
|
"fine-tune": "fine-tune",
|
|
42
50
|
"batch": "batch",
|
|
43
51
|
"ocr": "ocr",
|
|
52
|
+
"mistral-ocr-latest (Recommended)": "mistral-ocr-latest (Recommended)",
|
|
53
|
+
"mistral-ocr-2505": "mistral-ocr-2505",
|
|
54
|
+
"URL": "URL",
|
|
55
|
+
"Mistral file ID (uploaded earlier with purpose=ocr)": "Mistral file ID (uploaded earlier with purpose=ocr)",
|
|
44
56
|
"GET": "获取",
|
|
45
57
|
"POST": "帖子",
|
|
46
58
|
"PATCH": "PATCH",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-chat-completion.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-chat-completion.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"create-chat-completion.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-chat-completion.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;EA2E/B,CAAC"}
|
|
@@ -8,6 +8,7 @@ const auth_1 = require("../common/auth");
|
|
|
8
8
|
const props_1 = require("../common/props");
|
|
9
9
|
const request_1 = require("../common/request");
|
|
10
10
|
exports.createChatCompletion = (0, pieces_framework_1.createAction)({
|
|
11
|
+
audience: 'human',
|
|
11
12
|
auth: auth_1.mistralAuth,
|
|
12
13
|
name: 'create_chat_completion',
|
|
13
14
|
displayName: 'Ask Mistral',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-chat-completion.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-chat-completion.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAqE;AACrE,yCAA6C;AAC7C,2CAAmE;AACnE,+CAAmD;AAEtC,QAAA,oBAAoB,GAAG,IAAA,+BAAY,EAAC;
|
|
1
|
+
{"version":3,"file":"create-chat-completion.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-chat-completion.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAqE;AACrE,yCAA6C;AAC7C,2CAAmE;AACnE,+CAAmD;AAEtC,QAAA,oBAAoB,GAAG,IAAA,+BAAY,EAAC;IAC/C,QAAQ,EAAE,OAAO;IAClB,IAAI,EAAE,kBAAW;IACjB,IAAI,EAAE,wBAAwB;IAC9B,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,gCAAgC;IAC7C,KAAK,EAAE;QACN,KAAK,EAAE,qBAAa;QACpB,MAAM,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACzB,WAAW,EAAE,UAAU;YACvB,QAAQ,EAAE,IAAI;SACd,CAAC;QACF,WAAW,EAAE,2BAAQ,CAAC,MAAM,CAAC;YAC5B,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,CAAC;YACf,WAAW,EACV,2JAA2J;SAC5J,CAAC;QACF,KAAK,EAAE,2BAAQ,CAAC,MAAM,CAAC;YACtB,WAAW,EAAE,OAAO;YACpB,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,CAAC;YACf,WAAW,EACV,6OAA6O;SAC9O,CAAC;QACF,UAA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C,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;oBAExD,OAAO,MAAM,CAAC;gBACf,CAAC;gBAAC,OAAO,CAAM,EAAE,CAAC;oBACjB,OAAO,GAAG,CAAC,CAAC;oBACZ,MAAM,MAAM,GAAG,MAAA,CAAC,CAAC,QAAQ,0CAAE,MAAM,CAAC;oBAClC,IAAI,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,IAAI,MAAM,IAAI,GAAG,IAAI,MAAM,GAAG,GAAG,CAAC,EAAE,CAAC;wBACjE,IAAI,OAAO,GAAG,CAAC,EAAE,CAAC;4BACjB,MAAM,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,GAAG,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;4BAC9D,SAAS;wBACV,CAAC;oBACF,CAAC;oBACD,MAAM,IAAI,KAAK,CAAC,IAAA,yBAAiB,EAAC,CAAC,CAAC,CAAC,CAAC;gBACvC,CAAC;YACF,CAAC;YACD,MAAM,IAAI,KAAK,CAAC,IAAA,yBAAiB,EAAC,OAAO,CAAC,CAAC,CAAC;QAC7C,CAAC;KAAA;CACD,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-embeddings.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-embeddings.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB;;;;;;;;
|
|
1
|
+
{"version":3,"file":"create-embeddings.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-embeddings.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB;;;;;;;;EA4D3B,CAAC"}
|
|
@@ -8,6 +8,7 @@ const auth_1 = require("../common/auth");
|
|
|
8
8
|
const props_1 = require("../common/props");
|
|
9
9
|
const request_1 = require("../common/request");
|
|
10
10
|
exports.createEmbeddings = (0, pieces_framework_1.createAction)({
|
|
11
|
+
audience: 'human',
|
|
11
12
|
auth: auth_1.mistralAuth,
|
|
12
13
|
name: 'create_embeddings',
|
|
13
14
|
displayName: 'Create Embeddings',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-embeddings.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-embeddings.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAqE;AACrE,yCAA6C;AAC7C,2CAAoD;AACpD,+CAAmD;AAEtC,QAAA,gBAAgB,GAAG,IAAA,+BAAY,EAAC;
|
|
1
|
+
{"version":3,"file":"create-embeddings.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-embeddings.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAqE;AACrE,yCAA6C;AAC7C,2CAAoD;AACpD,+CAAmD;AAEtC,QAAA,gBAAgB,GAAG,IAAA,+BAAY,EAAC;IAC3C,QAAQ,EAAE,OAAO;IAClB,IAAI,EAAE,kBAAW;IACjB,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE,mBAAmB;IAChC,WAAW,EAAE,sCAAsC;IACnD,KAAK,EAAE;QACN,KAAK,EAAE,2BAAQ,CAAC,KAAK,CAAC;YACrB,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,kDAAkD;YAC/D,QAAQ,EAAE,IAAI;SACd,CAAC;QACF,OAAO,EAAE,2BAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,cAAc,EAAE,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;KAC/F;IACK,GAAG,CAAC,OAAO;;;YAChB,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAC9C,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,wBAAc,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACpE,IAAI,QAAQ,GAAa,EAAE,CAAC;YAC5B,IAAI,CAAC;gBACJ,IAAI,O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GAAG,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;4BAC9D,SAAS;wBACV,CAAC;oBACF,CAAC;oBACD,MAAM,IAAI,KAAK,CAAC,IAAA,yBAAiB,EAAC,CAAC,CAAC,CAAC,CAAC;gBACvC,CAAC;YACF,CAAC;YACD,MAAM,IAAI,KAAK,CAAC,IAAA,yBAAiB,EAAC,OAAO,CAAC,CAAC,CAAC;QAC7C,CAAC;KAAA;CACD,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-models.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/list-models.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,UAAU;;;;;
|
|
1
|
+
{"version":3,"file":"list-models.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/list-models.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,UAAU;;;;;UAqBrB,CAAC"}
|
|
@@ -8,6 +8,7 @@ const auth_1 = require("../common/auth");
|
|
|
8
8
|
const props_1 = require("../common/props");
|
|
9
9
|
const request_1 = require("../common/request");
|
|
10
10
|
exports.listModels = (0, pieces_framework_1.createAction)({
|
|
11
|
+
audience: 'human',
|
|
11
12
|
auth: auth_1.mistralAuth,
|
|
12
13
|
name: 'list_models',
|
|
13
14
|
displayName: 'List Models',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-models.js","sourceRoot":"","sources":["../../../../src/lib/actions/list-models.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,+DAAqE;AACrE,yCAA6C;AAC7C,2CAAoD;AACpD,+CAAmD;AAEtC,QAAA,UAAU,GAAG,IAAA,+BAAY,EAAC;
|
|
1
|
+
{"version":3,"file":"list-models.js","sourceRoot":"","sources":["../../../../src/lib/actions/list-models.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,+DAAqE;AACrE,yCAA6C;AAC7C,2CAAoD;AACpD,+CAAmD;AAEtC,QAAA,UAAU,GAAG,IAAA,+BAAY,EAAC;IACrC,QAAQ,EAAE,OAAO;IAClB,IAAI,EAAE,kBAAW;IACjB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,kDAAkD;IAC/D,KAAK,EAAE,EAAE;IACH,GAAG;qEAAC,EAAE,IAAI,EAAE;YACjB,IAAI,CAAC;gBACJ,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,wBAAc,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;gBAC5D,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;oBAC7C,MAAM,EAAE,0BAAU,CAAC,GAAG;oBACtB,GAAG,EAAE,GAAG,OAAO,SAAS;oBACxB,OAAO;iBACP,CAAC,CAAC;gBAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;YACtB,CAAC;YAAC,OAAO,CAAM,EAAE,CAAC;gBACjB,MAAM,IAAI,KAAK,CAAC,IAAA,yBAAiB,EAAC,CAAC,CAAC,CAAC,CAAC;YACvC,CAAC;QACF,CAAC;KAAA;CACD,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-ocr.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/run-ocr.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,MAAM;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"run-ocr.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/run-ocr.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,MAAM;;;;;;;;;;;;EA8HjB,CAAC;AA8EH,KAAK,cAAc,GAAG,KAAK,GAAG,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-ocr.js","sourceRoot":"","sources":["../../../../src/lib/actions/run-ocr.ts"],"names":[],"mappings":";;;;AAAA,qEAAqG;AACrG,+DAAqE;AACrE,yCAA6C;AAC7C,2CAAoD;AACpD,+CAA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AC,IAAI,CAAC;AAC5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-file.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/upload-file.ts"],"names":[],"mappings":"AA2BA,eAAO,MAAM,UAAU;;;;;;;;
|
|
1
|
+
{"version":3,"file":"upload-file.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/upload-file.ts"],"names":[],"mappings":"AA2BA,eAAO,MAAM,UAAU;;;;;;;;EAsDrB,CAAC"}
|
|
@@ -27,6 +27,7 @@ function getFileExtension(filename) {
|
|
|
27
27
|
return parts.length > 1 ? parts.pop().toLowerCase() : '';
|
|
28
28
|
}
|
|
29
29
|
exports.uploadFile = (0, pieces_framework_1.createAction)({
|
|
30
|
+
audience: 'human',
|
|
30
31
|
auth: auth_1.mistralAuth,
|
|
31
32
|
name: 'upload_file',
|
|
32
33
|
displayName: 'Upload File',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-file.js","sourceRoot":"","sources":["../../../../src/lib/actions/upload-file.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAqE;AACrE,yCAA6C;AAC7C,kEAAiC;AACjC,2CAAoD;AACpD,+CAAmD;AAEnD,MAAM,kBAAkB,GAAG,CAAC,WAAW,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;AACzD,MAAM,mBAAmB,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,CAAC;AAC9C,MAAM,kBAAkB,GAAG;IAC1B,OAAO;IACP,KAAK;IACL,KAAK;IACL,KAAK;IACL,MAAM;IACN,KAAK;IACL,KAAK;IACL,MAAM;IACN,KAAK;IACL,KAAK;CACL,CAAC;AAEF,SAAS,gBAAgB,CAAC,QAAgB;IACzC,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAClC,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GA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