Anthropic Messages API provider preset.
Uses LLM.Adapter.Anthropic for the Anthropic Messages API.
Configuration
config :llm, :providers,
anthropic: [api_key: "sk-ant-..."]Or at runtime:
LLM.put_key(:anthropic, "sk-ant-...")Usage
# Using as provider option
LLM.generate("Hello", provider: LLM.Provider.Anthropic, model: "claude-sonnet-4-5-20250514")
# With explicit API key
LLM.generate("Hello", provider: {LLM.Provider.Anthropic, api_key: "sk-ant-..."}, model: "claude-sonnet-4-5-20250514")