From f48aa05ce8729c097dce376929c359b159637ac9 Mon Sep 17 00:00:00 2001 From: GTFalcao Date: Mon, 26 May 2025 22:15:07 -0300 Subject: [PATCH 1/2] Adding new Claude models to Anthropic app --- components/anthropic/actions/chat/chat.mjs | 2 +- .../anthropic/actions/common/constants.mjs | 43 ++++++++++++++++--- components/anthropic/package.json | 2 +- 3 files changed, 38 insertions(+), 9 deletions(-) diff --git a/components/anthropic/actions/chat/chat.mjs b/components/anthropic/actions/chat/chat.mjs index 62a8aef8f6dd1..afe807a3901a1 100644 --- a/components/anthropic/actions/chat/chat.mjs +++ b/components/anthropic/actions/chat/chat.mjs @@ -3,7 +3,7 @@ import constants from "../common/constants.mjs"; export default { name: "Chat", - version: "0.0.10", + version: "0.1.0", key: "anthropic-chat", description: "The Chat API. [See the documentation](https://docs.anthropic.com/claude/reference/messages_post)", type: "action", diff --git a/components/anthropic/actions/common/constants.mjs b/components/anthropic/actions/common/constants.mjs index 6ad91a8431eb2..4587351a8f03a 100644 --- a/components/anthropic/actions/common/constants.mjs +++ b/components/anthropic/actions/common/constants.mjs @@ -1,11 +1,40 @@ export default { MESSAGE_MODELS: [ - "claude-3-7-sonnet-20250219", - "claude-3-5-sonnet-20241022", - "claude-3-5-haiku-20241022", - "claude-3-5-sonnet-20240620", - "claude-3-opus-20240229", - "claude-3-sonnet-20240229", - "claude-3-haiku-20240307", + { + label: "Claude Opus 4", + value: "claude-opus-4-20250514", + }, + { + label: "Claude Sonnet 4", + value: "claude-sonnet-4-20250514", + }, + { + label: "Claude Sonnet 3.7", + value: "claude-3-7-sonnet-20250219", + }, + { + label: "Claude Sonnet 3.5 v2", + value: "claude-3-5-sonnet-20241022", + }, + { + label: "Claude Haiku 3.5", + value: "claude-3-5-haiku-20241022", + }, + { + label: "Claude Sonnet 3.5", + value: "claude-3-5-sonnet-20240620", + }, + { + label: "Claude Opus 3", + value: "claude-3-opus-20240229", + }, + { + label: "Claude Sonnet 3", + value: "claude-3-sonnet-20240229", + }, + { + label: "Claude Haiku 3", + value: "claude-3-haiku-20240307", + }, ], }; diff --git a/components/anthropic/package.json b/components/anthropic/package.json index 6a08871b78888..bb18034795d63 100644 --- a/components/anthropic/package.json +++ b/components/anthropic/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/anthropic", - "version": "0.0.12", + "version": "0.1.0", "description": "Pipedream Anthropic (Claude) Components", "main": "anthropic.app.mjs", "keywords": [ From b5319fede70f08aa92ee7dc60c2856b78edb8348 Mon Sep 17 00:00:00 2001 From: GTFalcao Date: Mon, 26 May 2025 22:19:38 -0300 Subject: [PATCH 2/2] Adjusting model prop --- components/anthropic/actions/chat/chat.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/anthropic/actions/chat/chat.mjs b/components/anthropic/actions/chat/chat.mjs index afe807a3901a1..8f1cd3137579a 100644 --- a/components/anthropic/actions/chat/chat.mjs +++ b/components/anthropic/actions/chat/chat.mjs @@ -11,10 +11,10 @@ export default { anthropic, model: { label: "Model", - description: "Select the model to use for your query. Defaults to the `claude-3-7-sonnet-20250219` model, which is Anthropic's latest Claude model.", + description: "Select the model to use for your query. Defaults to the latest Claude model - [see the documentation](https://docs.anthropic.com/en/docs/about-claude/models/overview) for more information", type: "string", options: constants.MESSAGE_MODELS, - default: constants.MESSAGE_MODELS[0], + default: constants.MESSAGE_MODELS[0].value, }, userMessage: { label: "User Message",