diff --git a/components/anthropic/actions/chat/chat.mjs b/components/anthropic/actions/chat/chat.mjs index 62a8aef8f6dd1..8f1cd3137579a 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", @@ -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", 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": [