TsgcHTTP_API_AnthropicProperties › TLSOptions

TLSOptions Property

Configures the TLS/SSL layer used for HTTPS connections to the Anthropic API

Syntax

property TLSOptions: TsgcHTTPTLS_Options read GetTLSOptions
      write FTLSOptions;

Default Value

Remarks

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.

Example

oAPI := TsgcHTTP_API_Anthropic.Create(nil);
oAPI.TLSOptions.OpenSSL_Options.APIVersion := oslAPI_1_1;
oAPI.TLSOptions.MinVersion := tls1_2;
oAPI.TLSOptions.VerifyCertificate := True;

Back to Properties