AnthropicConfig

AnthropicConfig is a configuration class for integrating with the Anthropic API. It allows for customization of base API URL, model versions, API version, timeout settings, and the HTTP client used for requests. This class facilitates specifying all necessary parameters and settings required to interact with Anthropic's LLM services.

Parameters

apiKey

The API key used for authenticating requests to the Anthropic API.

Constructors

Link copied to clipboard
constructor()

Creates an instance of AnthropicConfig with a mandatory API key.

Properties

Link copied to clipboard

Specifies the API version used for requests to the Anthropic API.

Link copied to clipboard

Specifies the base URL for the Anthropic API used in client requests.

Link copied to clipboard

Represents the HTTP client that is used to perform network operations such as API requests within the AnthropicConfig configuration.

Link copied to clipboard

Maps a specific LLModel to its corresponding version string. This configuration is primarily used to associate particular model identifiers with their appropriate versions, allowing the system to select or adjust model behaviors based on these mappings.

Link copied to clipboard

Configures the timeout settings for API requests, connection establishment, and socket operations when interacting with the Anthropic API. This property is used to customize timeout behavior to handle use cases requiring different default durations for network-related operations.

Functions

Link copied to clipboard

Configures the timeout values for network requests, connection establishment, and socket operations by applying the provided configuration block.