claude_opus_4_1
What it is
- A module-level definition of a
ChatModelconfigured to use Anthropic’sclaude-opus-4-1-20250805vialangchain_anthropic.ChatAnthropic. - Intended to be imported and used as a ready-to-run chat model instance.
Public API
- Constants
MODEL_ID: str— Anthropic model name ("claude-opus-4-1-20250805").PROVIDER: str— Provider identifier ("anthropic").
- Objects
model: ChatModel— Preconfigured chat model wrapper.
Configuration/Dependencies
- Dependencies
langchain_anthropic.ChatAnthropicnaas_abi_marketplace.ai.claude.ABIModule(for configuration access)naas_abi_core.models.Model.ChatModelpydantic.SecretStr
- Required configuration
ABIModule.get_instance().configuration.anthropic_api_keymust be set (used as the Anthropic API key).
- ChatAnthropic parameters set
model_name=MODEL_IDtemperature=0max_retries=2timeout=Nonestop=None
Usage
from naas_abi_marketplace.ai.claude.models.claude_opus_4_1 import model
# Use `model` wherever a `ChatModel` instance is expected in your codebase.
print(model.model_id) # "claude-opus-4-1-20250805"
print(model.provider) # "anthropic"
Caveats
- This module only defines configuration and instantiates the model; it does not define helper functions for prompting or execution.
- If
anthropic_api_keyis missing/invalid inABIModuleconfiguration, initialization or downstream calls will fail.