class Riffer::Providers::Anthropic
Anthropic provider for Claude models via the Anthropic API.
Requires the +anthropic+ gem to be installed.
Constants
- WEB_SEARCH_TOOL_TYPE
Public Class Methods
Source
# File lib/riffer/providers/anthropic.rb, line 15 def initialize(api_key: nil, **options) depends_on "anthropic" api_key ||= Riffer.config.anthropic.api_key @client = Anthropic::Client.new(api_key: api_key, **options) end
Initializes the Anthropic provider.
: (?api_key: String?, **untyped) -> void