TsgcHTTP_API_Anthropic › プロパティ › TLSOptions
Anthropic API への HTTPS 接続に使用される TLS/SSL 層を設定します。
property TLSOptions: TsgcHTTPTLS_Options read GetTLSOptions
write FTLSOptions;
—
TLSOptions は、https://api.anthropic.com/v1 への HTTPS 接続を確立する際に使用する TLS ライブラリ(OpenSSL または SChannel)、プロトコルバージョン、証明書検証ポリシーを制御します。Anthropic エンドポイントには TLS 1.2 以上が必要なため、特定の相互運用性ニーズがない限りデフォルトのままにしてください。カスタムルート証明書または相互 TLS もここで設定できます。
oAPI := TsgcHTTP_API_Anthropic.Create(nil);
oAPI.TLSOptions.OpenSSL_Options.APIVersion := oslAPI_1_1;
oAPI.TLSOptions.MinVersion := tls1_2;
oAPI.TLSOptions.VerifyCertificate := True;