CreatesAnthropicClient
trait CreatesAnthropicClient
Traits
Methods
createClient(string $baseUrl, array $headers = [], array $configuredHeaders = [], int|null $timeout = 60, bool $throw = true)
Create an HTTP client with the provider's request options.
from
CreatesClient
string
httpConnection(Provider $provider)
Select a boot-registered connection without retaining dynamic provider names.
from
CreatesClient
Details
in
CreatesClient at line 21
protected PendingRequest
createClient(string $baseUrl, array $headers = [], array $configuredHeaders = [], int|null $timeout = 60, bool $throw = true)
Create an HTTP client with the provider's request options.
in
CreatesClient at line 43
protected string
httpConnection(Provider $provider)
Select a boot-registered connection without retaining dynamic provider names.
at line 18
protected PendingRequest
client(Provider $provider, int|null $timeout = null)
Get an HTTP client for the Anthropic API.
at line 39
protected string
baseUrl(Provider $provider)
Get the base URL for the Anthropic API.