@activepieces/piece-claude 0.3.0 → 0.4.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/package.json CHANGED
@@ -1,29 +1,25 @@
1
1
  {
2
2
  "name": "@activepieces/piece-claude",
3
- "version": "0.3.0",
3
+ "version": "0.4.1",
4
4
  "dependencies": {
5
- "@ai-sdk/anthropic": "2.0.3",
6
- "@ai-sdk/google": "2.0.6",
7
- "@ai-sdk/openai": "2.0.12",
8
- "@ai-sdk/provider": "2.0.0",
9
- "@ai-sdk/replicate": "1.0.3",
10
5
  "@anthropic-ai/sdk": "0.39.0",
11
6
  "@sinclair/typebox": "0.34.11",
12
- "ai": "5.0.104",
7
+ "ai": "^6.0.0",
13
8
  "ajv": "8.12.0",
14
9
  "axios": "1.13.1",
15
10
  "axios-retry": "4.4.1",
16
11
  "deepmerge-ts": "7.1.0",
12
+ "form-data": "4.0.4",
13
+ "i18next": "23.13.0",
17
14
  "mime-types": "2.1.35",
18
15
  "nanoid": "3.3.8",
19
16
  "semver": "7.6.0",
20
17
  "socket.io-client": "4.8.1",
21
- "tslib": "2.6.2",
22
18
  "zod": "4.1.13",
23
- "@activepieces/common-ai": "0.6.0",
24
- "@activepieces/pieces-common": "0.10.1",
25
- "@activepieces/pieces-framework": "0.22.2",
26
- "@activepieces/shared": "0.29.0"
19
+ "@activepieces/pieces-common": "0.11.2",
20
+ "@activepieces/pieces-framework": "0.24.0",
21
+ "@activepieces/shared": "0.32.0",
22
+ "tslib": "2.6.2"
27
23
  },
28
24
  "resolutions": {
29
25
  "rollup": "npm:@rollup/wasm-node"
package/src/i18n/de.json CHANGED
@@ -22,10 +22,12 @@
22
22
  "Method": "Methode",
23
23
  "Headers": "Kopfzeilen",
24
24
  "Query Parameters": "Abfrageparameter",
25
+ "Body Type": "Körpertyp",
25
26
  "Body": "Körper",
26
27
  "Response is Binary ?": "Antwort ist binär?",
27
28
  "No Error on Failure": "Kein Fehler bei Fehler",
28
29
  "Timeout (in seconds)": "Timeout (in Sekunden)",
30
+ "Follow redirects": "Weiterleitungen folgen",
29
31
  "The model which will generate the completion. Some models are suitable for natural language tasks, others specialize in code.": "Das Modell, das die Vervollständigung generiert. Einige Modelle eignen sich für Aufgaben der natürlichen Sprache, andere sind auf Code spezialisiert.",
30
32
  "Controls randomness: Lowering results in less random completions. As the temperature approaches zero, the model will become deterministic and repetitive.": "Kontrolliert Zufallszufälligkeit: Die Verringerung führt zu weniger zufälligen Vervollständigungen. Je näher die Temperatur Null rückt, desto deterministischer und sich wiederholender wird.",
31
33
  "The maximum number of tokens to generate. Requests can use up to 2,048 or 4,096 tokens shared between prompt and completion, don't set the value to maximum and leave some tokens for the input. The exact limit varies by model. (One token is roughly 4 characters for normal English text)": "Die maximale Anzahl der zu generierenden Token. Anfragen können bis zu 2.048 oder 4.096 Token verwenden, die zwischen Prompt und Fertigstellung geteilt werden, setzen Sie den Wert nicht auf maximal und lassen Sie einige Token für die Eingabe. Das genaue Limit variiert je nach Modell. (Ein Token ist ungefähr 4 Zeichen für den normalen englischen Text)",
@@ -37,16 +39,13 @@
37
39
  "Prompt to guide the AI.": "Aufforderung zur Führung der KI.",
38
40
  "For complex schema, you can use advanced mode.": "Für ein komplexes Schema können Sie den erweiterten Modus verwenden.",
39
41
  "Authorization headers are injected automatically from your connection.": "Autorisierungs-Header werden automatisch von Ihrer Verbindung injiziert.",
40
- "Enable for files like PDFs, images, etc..": "Aktivieren für Dateien wie PDFs, Bilder, etc..",
42
+ "Enable for files like PDFs, images, etc.": "Aktivieren für Dateien wie PDFs, Bilder usw.",
43
+ "Claude 4.5 Opus": "Claude 4.5 Opus",
41
44
  "Claude 4.5 Sonnet": "Claude 4.5 Sonnet",
42
45
  "Claude 4.5 Haiku": "Claude 4.5 Haiku",
43
46
  "Claude 4.1 Opus": "Claude 4.1 Opus",
44
47
  "Claude 4 Sonnet": "Claude 4 Sonnet",
45
- "Claude 3.7 Sonnet": "Claude 3.7 Sonnet",
46
48
  "Claude 3 Haiku": "Claude 3 Haiku",
47
- "Claude 3 Sonnet": "Claude 3 Sonnet",
48
- "Claude 3 Opus": "Claude 3 Opus",
49
- "Claude 3.5 Sonnet": "Claude 3.5 Sonnet",
50
49
  "Claude 3.5 Haiku": "Claude 3.5 Haiku",
51
50
  "Simple": "Einfach",
52
51
  "Advanced": "Erweitert",
@@ -55,5 +54,9 @@
55
54
  "PATCH": "PATCH",
56
55
  "PUT": "PUT",
57
56
  "DELETE": "LÖSCHEN",
58
- "HEAD": "HEAD"
57
+ "HEAD": "HEAD",
58
+ "None": "Keine",
59
+ "JSON": "JSON",
60
+ "Form Data": "Formulardaten",
61
+ "Raw": "Rohe"
59
62
  }
package/src/i18n/es.json CHANGED
@@ -22,10 +22,12 @@
22
22
  "Method": "Método",
23
23
  "Headers": "Encabezados",
24
24
  "Query Parameters": "Parámetros de consulta",
25
+ "Body Type": "Tipo de cuerpo",
25
26
  "Body": "Cuerpo",
26
27
  "Response is Binary ?": "¿Respuesta es binaria?",
27
28
  "No Error on Failure": "No hay ningún error en fallo",
28
29
  "Timeout (in seconds)": "Tiempo de espera (en segundos)",
30
+ "Follow redirects": "Seguir redirecciones",
29
31
  "The model which will generate the completion. Some models are suitable for natural language tasks, others specialize in code.": "El modelo que generará la terminación. Algunos modelos son adecuados para tareas de lenguaje natural, otros se especializan en código.",
30
32
  "Controls randomness: Lowering results in less random completions. As the temperature approaches zero, the model will become deterministic and repetitive.": "Controles aleatorios: La reducción de resultados en terminaciones menos aleatorias. A medida que la temperatura se acerca a cero, el modelo se volverá determinista y repetitivo.",
31
33
  "The maximum number of tokens to generate. Requests can use up to 2,048 or 4,096 tokens shared between prompt and completion, don't set the value to maximum and leave some tokens for the input. The exact limit varies by model. (One token is roughly 4 characters for normal English text)": "El número máximo de tokens a generar. Las solicitudes pueden usar hasta 2,048 o 4,096 tokens compartidos entre prompt y completation, no establezca el valor máximo y deje algunas fichas para la entrada. El límite exacto varía según el modelo. (Un token es de aproximadamente 4 caracteres para el texto normal en inglés)",
@@ -37,16 +39,13 @@
37
39
  "Prompt to guide the AI.": "Aspecto para guiar la IA.",
38
40
  "For complex schema, you can use advanced mode.": "Para esquemas complejos, puede utilizar el modo avanzado.",
39
41
  "Authorization headers are injected automatically from your connection.": "Las cabeceras de autorización se inyectan automáticamente desde tu conexión.",
40
- "Enable for files like PDFs, images, etc..": "Activar para archivos como PDFs, imágenes, etc.",
42
+ "Enable for files like PDFs, images, etc.": "Activar para archivos como PDFs, imágenes, etc.",
43
+ "Claude 4.5 Opus": "Claude 4.5 Opus",
41
44
  "Claude 4.5 Sonnet": "Claude 4.5 Sonnet",
42
45
  "Claude 4.5 Haiku": "Claude 4.5 Haiku",
43
46
  "Claude 4.1 Opus": "Claude 4.1 Opus",
44
47
  "Claude 4 Sonnet": "Claude 4 Sonnet",
45
- "Claude 3.7 Sonnet": "Claude 3.7 Sonnet",
46
48
  "Claude 3 Haiku": "Claude 3 Haiku",
47
- "Claude 3 Sonnet": "Claude 3 Sonnet",
48
- "Claude 3 Opus": "Claude 3 Opus",
49
- "Claude 3.5 Sonnet": "Claude 3.5 Sonnet",
50
49
  "Claude 3.5 Haiku": "Claude 3.5 Haiku",
51
50
  "Simple": "Simple",
52
51
  "Advanced": "Avanzado",
@@ -55,5 +54,9 @@
55
54
  "PATCH": "PATCH",
56
55
  "PUT": "PUT",
57
56
  "DELETE": "BORRAR",
58
- "HEAD": "LIMPIO"
57
+ "HEAD": "LIMPIO",
58
+ "None": "Ninguna",
59
+ "JSON": "JSON",
60
+ "Form Data": "Datos de Formulario",
61
+ "Raw": "Rápido"
59
62
  }
package/src/i18n/fr.json CHANGED
@@ -22,10 +22,12 @@
22
22
  "Method": "Méthode",
23
23
  "Headers": "En-têtes",
24
24
  "Query Parameters": "Paramètres de requête",
25
+ "Body Type": "Body Type",
25
26
  "Body": "Corps",
26
27
  "Response is Binary ?": "La réponse est Binaire ?",
27
28
  "No Error on Failure": "Aucune erreur en cas d'échec",
28
29
  "Timeout (in seconds)": "Délai d'attente (en secondes)",
30
+ "Follow redirects": "Suivre les redirections",
29
31
  "The model which will generate the completion. Some models are suitable for natural language tasks, others specialize in code.": "Le modèle qui va générer la complétion. Certains modèles sont adaptés aux tâches de langage naturel, d'autres se spécialisent dans le code.",
30
32
  "Controls randomness: Lowering results in less random completions. As the temperature approaches zero, the model will become deterministic and repetitive.": "Contrôle aléatoirement : La baisse des résultats est moins aléatoire, alors que la température approche de zéro, le modèle devient déterministe et répétitif.",
31
33
  "The maximum number of tokens to generate. Requests can use up to 2,048 or 4,096 tokens shared between prompt and completion, don't set the value to maximum and leave some tokens for the input. The exact limit varies by model. (One token is roughly 4 characters for normal English text)": "Le nombre maximum de jetons à générer. Les requêtes peuvent utiliser jusqu'à 2 048 ou 4 096 jetons partagés entre l'invite et la complétion, ne pas définir la valeur au maximum et laisser des jetons pour l'entrée. La limite exacte varie selon le modèle. (un jeton est d'environ 4 caractères pour le texte anglais normal)",
@@ -37,16 +39,13 @@
37
39
  "Prompt to guide the AI.": "Demander à guider l'IA.",
38
40
  "For complex schema, you can use advanced mode.": "Pour le schéma complexe, vous pouvez utiliser le mode avancé.",
39
41
  "Authorization headers are injected automatically from your connection.": "Les en-têtes d'autorisation sont injectés automatiquement à partir de votre connexion.",
40
- "Enable for files like PDFs, images, etc..": "Activer pour les fichiers comme les PDFs, les images, etc.",
42
+ "Enable for files like PDFs, images, etc.": "Activer pour les fichiers comme les PDFs, les images, etc.",
43
+ "Claude 4.5 Opus": "Claude 4.5 Opus",
41
44
  "Claude 4.5 Sonnet": "Claude 4.5 Sonnet",
42
45
  "Claude 4.5 Haiku": "Claude 4.5 Haiku",
43
46
  "Claude 4.1 Opus": "Claude 4.1 Opus",
44
47
  "Claude 4 Sonnet": "Claude 4 Sonnet",
45
- "Claude 3.7 Sonnet": "Claude 3.7 Sonnet",
46
48
  "Claude 3 Haiku": "Claude 3 Haiku",
47
- "Claude 3 Sonnet": "Claude 3 Sonnet",
48
- "Claude 3 Opus": "Claude 3 Opus",
49
- "Claude 3.5 Sonnet": "Claude 3.5 Sonnet",
50
49
  "Claude 3.5 Haiku": "Claude 3.5 Haiku",
51
50
  "Simple": "Simple",
52
51
  "Advanced": "Avancé",
@@ -55,5 +54,9 @@
55
54
  "PATCH": "PATCH",
56
55
  "PUT": "PUT",
57
56
  "DELETE": "DELETE",
58
- "HEAD": "TÊTE"
57
+ "HEAD": "TÊTE",
58
+ "None": "Aucun",
59
+ "JSON": "JSON",
60
+ "Form Data": "Données du formulaire",
61
+ "Raw": "Brut"
59
62
  }
package/src/i18n/ja.json CHANGED
@@ -22,10 +22,12 @@
22
22
  "Method": "方法",
23
23
  "Headers": "ヘッダー",
24
24
  "Query Parameters": "クエリパラメータ",
25
+ "Body Type": "ボディタイプ",
25
26
  "Body": "本文",
26
27
  "Response is Binary ?": "応答はバイナリですか?",
27
28
  "No Error on Failure": "失敗時にエラーはありません",
28
29
  "Timeout (in seconds)": "タイムアウト(秒)",
30
+ "Follow redirects": "リダイレクトをフォローする",
29
31
  "The model which will generate the completion. Some models are suitable for natural language tasks, others specialize in code.": "補完を生成するモデル。自然言語タスクに適しているモデルもあれば、コードに特化したモデルもあります。",
30
32
  "Controls randomness: Lowering results in less random completions. As the temperature approaches zero, the model will become deterministic and repetitive.": "温度がゼロに近づくにつれて、モデルは決定論的で反復的になります。",
31
33
  "The maximum number of tokens to generate. Requests can use up to 2,048 or 4,096 tokens shared between prompt and completion, don't set the value to maximum and leave some tokens for the input. The exact limit varies by model. (One token is roughly 4 characters for normal English text)": "生成するトークンの最大数。 リクエストは、プロンプトと完了の間で共有された最大2,048または4,096トークンを使用できます。 値を最大値に設定しないで、トークンを入力してください。 正確な制限はモデルによって異なります。(通常の英文では1つのトークンが約4文字です)",
@@ -37,16 +39,13 @@
37
39
  "Prompt to guide the AI.": "AIを導くように促します。",
38
40
  "For complex schema, you can use advanced mode.": "複雑なスキーマでは、高度なモードを使用できます。",
39
41
  "Authorization headers are injected automatically from your connection.": "認証ヘッダは接続から自動的に注入されます。",
40
- "Enable for files like PDFs, images, etc..": "PDF、画像などのファイルを有効にします。",
42
+ "Enable for files like PDFs, images, etc.": "PDF、画像などのファイルを有効にする",
43
+ "Claude 4.5 Opus": "Claude 4.5 Opus",
41
44
  "Claude 4.5 Sonnet": "Claude 4.5 Sonnet",
42
45
  "Claude 4.5 Haiku": "クロード4.5俳句format@@0",
43
46
  "Claude 4.1 Opus": "Claude 4.1 Opus",
44
47
  "Claude 4 Sonnet": "Claude 4 Sonnet",
45
- "Claude 3.7 Sonnet": "Claude 3.7 Sonnet",
46
48
  "Claude 3 Haiku": "クロード3俳句format@@0",
47
- "Claude 3 Sonnet": "Claude 3 Sonnet",
48
- "Claude 3 Opus": "Claude 3 Opus",
49
- "Claude 3.5 Sonnet": "Claude 3.5 Sonnet",
50
49
  "Claude 3.5 Haiku": "Claude 3.5 Haiku",
51
50
  "Simple": "単純な",
52
51
  "Advanced": "高度な設定",
@@ -55,5 +54,9 @@
55
54
  "PATCH": "PATCH",
56
55
  "PUT": "PUT",
57
56
  "DELETE": "削除",
58
- "HEAD": "頭"
57
+ "HEAD": "頭",
58
+ "None": "なし",
59
+ "JSON": "JSON",
60
+ "Form Data": "フォームデータ",
61
+ "Raw": "Raw"
59
62
  }
package/src/i18n/nl.json CHANGED
@@ -22,10 +22,12 @@
22
22
  "Method": "Methode",
23
23
  "Headers": "Kopteksten",
24
24
  "Query Parameters": "Query parameters",
25
+ "Body Type": "Type lichaam",
25
26
  "Body": "Lichaam",
26
27
  "Response is Binary ?": "Antwoord is binair?",
27
28
  "No Error on Failure": "Geen fout bij fout",
28
29
  "Timeout (in seconds)": "Time-out (in seconden)",
30
+ "Follow redirects": "Volg omleidingen",
29
31
  "The model which will generate the completion. Some models are suitable for natural language tasks, others specialize in code.": "Het model dat de voltooiing zal genereren. Sommige modellen zijn geschikt voor natuurlijke taaltaken, andere zijn gespecialiseerd in code.",
30
32
  "Controls randomness: Lowering results in less random completions. As the temperature approaches zero, the model will become deterministic and repetitive.": "Bestuurt willekeurigheid: Het verlagen van de temperatuur resulteert in minder willekeurige aanvullingen. Zodra de temperatuur nul nadert, zal het model deterministisch en herhalend worden.",
31
33
  "The maximum number of tokens to generate. Requests can use up to 2,048 or 4,096 tokens shared between prompt and completion, don't set the value to maximum and leave some tokens for the input. The exact limit varies by model. (One token is roughly 4 characters for normal English text)": "Het maximum aantal te genereren tokens Verzoeken kunnen maximaal 2.048 of 4.096 tokens gedeeld worden tussen prompt en voltooiing, stel de waarde niet in op maximum en laat sommige tokens voor de invoer. De exacte limiet varieert per model. (Eén token is grofweg 4 tekens voor normale Engelse tekst)",
@@ -37,16 +39,13 @@
37
39
  "Prompt to guide the AI.": "Vraag om de AI te begeleiden.",
38
40
  "For complex schema, you can use advanced mode.": "Voor complexe schema's kunt u de geavanceerde modus gebruiken.",
39
41
  "Authorization headers are injected automatically from your connection.": "Autorisatie headers worden automatisch geïnjecteerd vanuit uw verbinding.",
40
- "Enable for files like PDFs, images, etc..": "Inschakelen voor bestanden zoals PDF's, afbeeldingen etc..",
42
+ "Enable for files like PDFs, images, etc.": "Inschakelen voor bestanden zoals PDF's, afbeeldingen etc.",
43
+ "Claude 4.5 Opus": "Claude 4.5 Opus",
41
44
  "Claude 4.5 Sonnet": "Claude 4.5 Sonnet",
42
45
  "Claude 4.5 Haiku": "Claude 4.5 Haiku",
43
46
  "Claude 4.1 Opus": "Claude 4.1 Opus",
44
47
  "Claude 4 Sonnet": "Claude 4 Sonnet",
45
- "Claude 3.7 Sonnet": "Claude 3.7 Sonnet",
46
48
  "Claude 3 Haiku": "Claude 3 Haiku",
47
- "Claude 3 Sonnet": "Claude 3 Sonnet",
48
- "Claude 3 Opus": "Claude 3 Opus",
49
- "Claude 3.5 Sonnet": "Claude 3.5 Sonnet",
50
49
  "Claude 3.5 Haiku": "Claude 3.5 Haiku",
51
50
  "Simple": "Eenvoudig",
52
51
  "Advanced": "Geavanceerd",
@@ -55,5 +54,9 @@
55
54
  "PATCH": "BEKIJK",
56
55
  "PUT": "PUT",
57
56
  "DELETE": "VERWIJDEREN",
58
- "HEAD": "HOOFD"
57
+ "HEAD": "HOOFD",
58
+ "None": "geen",
59
+ "JSON": "JSON",
60
+ "Form Data": "Formulieren gegevens",
61
+ "Raw": "Onbewerkte"
59
62
  }
package/src/i18n/pt.json CHANGED
@@ -22,10 +22,12 @@
22
22
  "Method": "Método",
23
23
  "Headers": "Cabeçalhos",
24
24
  "Query Parameters": "Parâmetros da consulta",
25
+ "Body Type": "Tipo de Corpo",
25
26
  "Body": "Conteúdo",
26
27
  "Response is Binary ?": "A resposta é binária ?",
27
28
  "No Error on Failure": "Nenhum erro no Failure",
28
29
  "Timeout (in seconds)": "Tempo limite (em segundos)",
30
+ "Follow redirects": "Seguir redirecionamentos",
29
31
  "The model which will generate the completion. Some models are suitable for natural language tasks, others specialize in code.": "O modelo que irá gerar a conclusão. Alguns modelos são adequados para tarefas de linguagem natural, outros são especializados no código.",
30
32
  "Controls randomness: Lowering results in less random completions. As the temperature approaches zero, the model will become deterministic and repetitive.": "Controla aleatoriedade: Diminuir resulta em menos complementos aleatórios. À medida que a temperatura se aproxima de zero, o modelo se tornará determinístico e repetitivo.",
31
33
  "The maximum number of tokens to generate. Requests can use up to 2,048 or 4,096 tokens shared between prompt and completion, don't set the value to maximum and leave some tokens for the input. The exact limit varies by model. (One token is roughly 4 characters for normal English text)": "O número máximo de tokens a gerar. Solicitações podem usar até 2.048 ou 4.096 tokens compartilhados entre prompt e conclusão, não defina o valor como máximo e deixe algumas fichas para a entrada. O limite exato varia por modelo. (Um token é aproximadamente 4 caracteres para o texto normal em inglês)",
@@ -37,16 +39,13 @@
37
39
  "Prompt to guide the AI.": "Peça para guiar a I.A.",
38
40
  "For complex schema, you can use advanced mode.": "Para esquemas complexos, você pode usar o modo avançado.",
39
41
  "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
- "Enable for files like PDFs, images, etc..": "Habilitar para arquivos como PDFs, imagens, etc..",
42
+ "Enable for files like PDFs, images, etc.": "Habilitar para arquivos como PDFs, imagens, etc.",
43
+ "Claude 4.5 Opus": "Claude 4.5 Opus",
41
44
  "Claude 4.5 Sonnet": "Claude 4.5 Sonnet",
42
45
  "Claude 4.5 Haiku": "Claude 4.5 Haiku",
43
46
  "Claude 4.1 Opus": "Claude 4.1 Opus",
44
47
  "Claude 4 Sonnet": "Claude 4 Sonnet",
45
- "Claude 3.7 Sonnet": "Claude 3.7 Sonnet",
46
48
  "Claude 3 Haiku": "Claude 3 Haiku",
47
- "Claude 3 Sonnet": "Claude 3 Sonnet",
48
- "Claude 3 Opus": "Claude 3 Opus",
49
- "Claude 3.5 Sonnet": "Sonnet de Claude 3.5",
50
49
  "Claude 3.5 Haiku": "Claude 3,5 Haiku",
51
50
  "Simple": "Simples",
52
51
  "Advanced": "Avançado",
@@ -55,5 +54,9 @@
55
54
  "PATCH": "COMPRAR",
56
55
  "PUT": "COLOCAR",
57
56
  "DELETE": "EXCLUIR",
58
- "HEAD": "CABEÇA"
57
+ "HEAD": "CABEÇA",
58
+ "None": "Nenhuma",
59
+ "JSON": "JSON",
60
+ "Form Data": "Dados de Formulário",
61
+ "Raw": "RAW"
59
62
  }
@@ -22,10 +22,12 @@
22
22
  "Method": "Method",
23
23
  "Headers": "Headers",
24
24
  "Query Parameters": "Query Parameters",
25
+ "Body Type": "Body Type",
25
26
  "Body": "Body",
26
27
  "Response is Binary ?": "Response is Binary ?",
27
28
  "No Error on Failure": "No Error on Failure",
28
29
  "Timeout (in seconds)": "Timeout (in seconds)",
30
+ "Follow redirects": "Follow redirects",
29
31
  "The model which will generate the completion. Some models are suitable for natural language tasks, others specialize in code.": "The model which will generate the completion. Some models are suitable for natural language tasks, others specialize in code.",
30
32
  "Controls randomness: Lowering results in less random completions. As the temperature approaches zero, the model will become deterministic and repetitive.": "Controls randomness: Lowering results in less random completions. As the temperature approaches zero, the model will become deterministic and repetitive.",
31
33
  "The maximum number of tokens to generate. Requests can use up to 2,048 or 4,096 tokens shared between prompt and completion, don't set the value to maximum and leave some tokens for the input. The exact limit varies by model. (One token is roughly 4 characters for normal English text)": "The maximum number of tokens to generate. Requests can use up to 2,048 or 4,096 tokens shared between prompt and completion, don't set the value to maximum and leave some tokens for the input. The exact limit varies by model. (One token is roughly 4 characters for normal English text)",
@@ -37,16 +39,13 @@
37
39
  "Prompt to guide the AI.": "Prompt to guide the AI.",
38
40
  "For complex schema, you can use advanced mode.": "For complex schema, you can use advanced mode.",
39
41
  "Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
40
- "Enable for files like PDFs, images, etc..": "Enable for files like PDFs, images, etc..",
42
+ "Enable for files like PDFs, images, etc.": "Enable for files like PDFs, images, etc.",
43
+ "Claude 4.5 Opus": "Claude 4.5 Opus",
41
44
  "Claude 4.5 Sonnet": "Claude 4.5 Sonnet",
42
45
  "Claude 4.5 Haiku": "Claude 4.5 Haiku",
43
46
  "Claude 4.1 Opus": "Claude 4.1 Opus",
44
47
  "Claude 4 Sonnet": "Claude 4 Sonnet",
45
- "Claude 3.7 Sonnet": "Claude 3.7 Sonnet",
46
48
  "Claude 3 Haiku": "Claude 3 Haiku",
47
- "Claude 3 Sonnet": "Claude 3 Sonnet",
48
- "Claude 3 Opus": "Claude 3 Opus",
49
- "Claude 3.5 Sonnet": "Claude 3.5 Sonnet",
50
49
  "Claude 3.5 Haiku": "Claude 3.5 Haiku",
51
50
  "Simple": "Simple",
52
51
  "Advanced": "Advanced",
@@ -55,5 +54,9 @@
55
54
  "PATCH": "PATCH",
56
55
  "PUT": "PUT",
57
56
  "DELETE": "DELETE",
58
- "HEAD": "HEAD"
57
+ "HEAD": "HEAD",
58
+ "None": "None",
59
+ "JSON": "JSON",
60
+ "Form Data": "Form Data",
61
+ "Raw": "Raw"
59
62
  }
package/src/i18n/zh.json CHANGED
@@ -22,10 +22,12 @@
22
22
  "Method": "方法",
23
23
  "Headers": "信头",
24
24
  "Query Parameters": "查询参数",
25
+ "Body Type": "Body Type",
25
26
  "Body": "正文内容",
26
27
  "Response is Binary ?": "Response is Binary ?",
27
28
  "No Error on Failure": "失败时没有错误",
28
29
  "Timeout (in seconds)": "超时(秒)",
30
+ "Follow redirects": "Follow redirects",
29
31
  "The model which will generate the completion. Some models are suitable for natural language tasks, others specialize in code.": "The model which will generate the completion. Some models are suitable for natural language tasks, others specialize in code.",
30
32
  "Controls randomness: Lowering results in less random completions. As the temperature approaches zero, the model will become deterministic and repetitive.": "Controls randomness: Lowering results in less random completions. As the temperature approaches zero, the model will become deterministic and repetitive.",
31
33
  "The maximum number of tokens to generate. Requests can use up to 2,048 or 4,096 tokens shared between prompt and completion, don't set the value to maximum and leave some tokens for the input. The exact limit varies by model. (One token is roughly 4 characters for normal English text)": "The maximum number of tokens to generate. Requests can use up to 2,048 or 4,096 tokens shared between prompt and completion, don't set the value to maximum and leave some tokens for the input. The exact limit varies by model. (One token is roughly 4 characters for normal English text)",
@@ -37,16 +39,13 @@
37
39
  "Prompt to guide the AI.": "Prompt to guide the AI.",
38
40
  "For complex schema, you can use advanced mode.": "For complex schema, you can use advanced mode.",
39
41
  "Authorization headers are injected automatically from your connection.": "授权头自动从您的连接中注入。",
40
- "Enable for files like PDFs, images, etc..": "Enable for files like PDFs, images, etc..",
42
+ "Enable for files like PDFs, images, etc.": "Enable for files like PDFs, images, etc.",
43
+ "Claude 4.5 Opus": "Claude 4.5 Opus",
41
44
  "Claude 4.5 Sonnet": "Claude 4.5 Sonnet",
42
45
  "Claude 4.5 Haiku": "Claude 4.5 Haiku",
43
46
  "Claude 4.1 Opus": "Claude 4.1 Opus",
44
47
  "Claude 4 Sonnet": "Claude 4 Sonnet",
45
- "Claude 3.7 Sonnet": "Claude 3.7 Sonnet",
46
48
  "Claude 3 Haiku": "Claude 3 Haiku",
47
- "Claude 3 Sonnet": "Claude 3 Sonnet",
48
- "Claude 3 Opus": "Claude 3 Opus",
49
- "Claude 3.5 Sonnet": "Claude 3.5 Sonnet",
50
49
  "Claude 3.5 Haiku": "Claude 3.5 Haiku",
51
50
  "Simple": "Simple",
52
51
  "Advanced": "Advanced",
@@ -55,5 +54,9 @@
55
54
  "PATCH": "PATCH",
56
55
  "PUT": "弹出",
57
56
  "DELETE": "删除",
58
- "HEAD": "黑色"
57
+ "HEAD": "黑色",
58
+ "None": "无",
59
+ "JSON": "JSON",
60
+ "Form Data": "表单数据",
61
+ "Raw": "原始文件"
59
62
  }
package/src/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
- var _a;
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  exports.claude = exports.claudeAuth = void 0;
5
4
  const tslib_1 = require("tslib");
@@ -9,11 +8,14 @@ const send_prompt_1 = require("./lib/actions/send-prompt");
9
8
  const common_1 = require("./lib/common/common");
10
9
  const shared_1 = require("@activepieces/shared");
11
10
  const extract_structured_data_1 = require("./lib/actions/extract-structured-data");
12
- const common_ai_1 = require("@activepieces/common-ai");
13
11
  exports.claudeAuth = pieces_framework_1.PieceAuth.SecretText({
14
12
  displayName: 'API Key',
15
13
  required: true,
16
- description: (_a = common_ai_1.SUPPORTED_AI_PROVIDERS.find(p => p.provider === 'anthropic')) === null || _a === void 0 ? void 0 : _a.markdown,
14
+ description: `Follow these instructions to get your Claude API Key:
15
+
16
+ 1. Visit the following website: https://console.anthropic.com/settings/keys.
17
+ 2. Once on the website, locate and click on the option to obtain your Claude API Key.
18
+ `,
17
19
  });
18
20
  exports.claude = (0, pieces_framework_1.createPiece)({
19
21
  displayName: 'Anthropic Claude',
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/claude/src/index.ts"],"names":[],"mappings":";;;;;AAAA,qEAAwE;AACxE,+DAAwE;AACxE,2DAAsD;AACtD,gDAA8C;AAC9C,iDAAqD;AACrD,mFAAoF;AACpF,uDAAiE;AAEpD,QAAA,UAAU,GAAG,4BAAS,CAAC,UAAU,CAAC;IAC7C,WAAW,EAAE,SAAS;IACtB,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,MAAA,kCAAsB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,WAAW,CAAC,0CAAE,QAAQ;CACpF,CAAC,CAAC;AAEU,QAAA,MAAM,GAAG,IAAA,8BAAW,EAAC;IAChC,WAAW,EAAE,kBAAkB;IAC/B,IAAI,EAAE,kBAAU;IAChB,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,gDAAgD;IACzD,UAAU,EAAE,CAAC,sBAAa,CAAC,uBAAuB,CAAC;IACnD,OAAO,EAAE,CAAC,aAAa,EAAC,YAAY,CAAC;IACrC,OAAO,EAAE;QACP,uBAAS;QACT,qDAA2B;QAC3B,IAAA,yCAAyB,EAAC;YACxB,IAAI,EAAE,kBAAU;YAChB,OAAO,EAAE,GAAG,EAAE,CAAC,gBAAO;YACtB,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAC1B,OAAO;oBACL,WAAW,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE;iBACnC,CAAC;YACJ,CAAC,CAAA;SACF,CAAC;KACH;IACD,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/claude/src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAwE;AACxE,2DAAsD;AACtD,gDAA8C;AAC9C,iDAAqD;AACrD,mFAAoF;AAEvE,QAAA,UAAU,GAAG,4BAAS,CAAC,UAAU,CAAC;IAC7C,WAAW,EAAE,SAAS;IACtB,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE;;;;CAId;CACA,CAAC,CAAC;AAEU,QAAA,MAAM,GAAG,IAAA,8BAAW,EAAC;IAChC,WAAW,EAAE,kBAAkB;IAC/B,IAAI,EAAE,kBAAU;IAChB,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,gDAAgD;IACzD,UAAU,EAAE,CAAC,sBAAa,CAAC,uBAAuB,CAAC;IACnD,OAAO,EAAE,CAAC,aAAa,EAAC,YAAY,CAAC;IACrC,OAAO,EAAE;QACP,uBAAS;QACT,qDAA2B;QAC3B,IAAA,yCAAyB,EAAC;YACxB,IAAI,EAAE,kBAAU;YAChB,OAAO,EAAE,GAAG,EAAE,CAAC,gBAAO;YACtB,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAC1B,OAAO;oBACL,WAAW,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE;iBACnC,CAAC;YACJ,CAAC,CAAA;SACF,CAAC;KACH;IACD,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}