AnthropicModelProviderOptions
Parameters and properties
Section titled “Parameters and properties”apiKeyRequiredstringExplicit Anthropic API key sent in x-api-key; no CLI account or host credential discovery.baseUrlOptionalstring | undefinedMessages API base URL including its version prefix, default https://api.anthropic.com/v1; messages is appended. Credentials, query or fragment fail with code configuration.cacheSystemOptionalboolean | undefinedAdds an ephemeral cache breakpoint on the system text, default false. Requests without system instructions then fail with code configuration; a cache hit is not guaranteed.timeoutMsOptionalnumber | undefinedRequest deadline in milliseconds, default 120000, at most 2147483647. While streaming it restarts on each received chunk; expiry rejects with code timeout.maxResponseBytesOptionalnumber | undefinedMaximum response body in bytes after decompression, default 8388608 (8 MiB); a streamed response counts all its chunks. A larger response fails with code response.