TsgcHTTP_API_OpenAI › Properties › TLSOptions
TLS/SSL configuration used for HTTPS connections to the OpenAI API
property TLSOptions: TsgcHTTPTLS_Options read GetTLSOptions
write FTLSOptions;
—
Exposes the TsgcHTTPTLS_Options instance used to secure every outbound connection to https://api.openai.com. From here you select the SSL provider (OpenSSL, SChannel), the minimum and maximum TLS versions, cipher suites, client certificates and optional peer verification callbacks. The defaults negotiate modern TLS 1.2/1.3 against OpenAI servers, so in most scenarios no changes are required. Adjust these options only when routing through a custom proxy, a corporate MITM certificate store or a self-hosted gateway.
oAPI.TLSOptions.OpenSSLOptions.APIVersion := oslAPI_1_1;
oAPI.TLSOptions.Version := [tls1_2, tls1_3];
oAPI.TLSOptions.VerifyCertificate := True;