TsgcHTTP_API_Anthropic › Properties › TLSOptions
Configures the TLS/SSL layer used for HTTPS connections to the Anthropic API
property TLSOptions: TsgcHTTPTLS_Options read GetTLSOptions
write FTLSOptions;
—
TLSOptions controls which TLS library (OpenSSL or SChannel), which protocol versions and which certificate validation policy are used when establishing HTTPS connections to https://api.anthropic.com/v1. The Anthropic endpoint requires TLS 1.2 or higher, so leave the default unless you have a specific interoperability need. Custom root certificates or mutual TLS can also be configured here.
oAPI := TsgcHTTP_API_Anthropic.Create(nil);
oAPI.TLSOptions.OpenSSL_Options.APIVersion := oslAPI_1_1;
oAPI.TLSOptions.MinVersion := tls1_2;
oAPI.TLSOptions.VerifyCertificate := True;