claude_haiku_4_5
What it is
- A module-level
ChatModelinstance configured to use Anthropic’s Claude modelclaude-haiku-4-5-20251001vialangchain_anthropic.ChatAnthropic.
Public API
MODEL_ID: str- The Anthropic model name:
"claude-haiku-4-5-20251001".
- The Anthropic model name:
PROVIDER: str- The provider identifier:
"anthropic".
- The provider identifier:
model: naas_abi_core.models.Model.ChatModel- Preconfigured chat model wrapper containing a
ChatAnthropicclient with:temperature=0max_retries=2timeout=Nonestop=Noneapi_keypulled fromABIModule.get_instance().configuration.anthropic_api_key
- Preconfigured chat model wrapper containing a
Configuration/Dependencies
- Dependencies
langchain_anthropic.ChatAnthropicnaas_abi_marketplace.ai.claude.ABIModulenaas_abi_core.models.Model.ChatModelpydantic.SecretStr
- Configuration
- Requires
ABIModule.get_instance().configuration.anthropic_api_keyto be set (used to initializeChatAnthropic).
- Requires
Usage
from naas_abi_marketplace.ai.claude.models.claude_haiku_4_5 import model
# Use the underlying LangChain model client
llm = model.model # ChatAnthropic instance
Caveats
- This module only defines and exports a preconfigured
ChatModel; actual invocation patterns depend on howChatModelandChatAnthropicare used elsewhere in your codebase. - If
anthropic_api_keyis missing/invalid inABIModuleconfiguration, initialization or requests will fail.