Skip to content

Add option for configuring SSL #540

@tytu147

Description

@tytu147

I have configured a proxy that works on the Layer 7 protocol and needs to guide traffic to capture Layer 7 packets and decrypt data from some network layer applications. This will cause my code to encounter certificate untrusted errors when requesting the AI interface again. Can you tell me how to configure the code? I hope to ignore the scope only for this related request and not affect the JVM.

OpenAIClient client = OpenAIOkHttpClient.builder()
.baseUrl(openAiEnum.getApiUrl())
.apiKey(openAiEnum.getApiKey())
.proxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress("192.168.6.128", 9000)))
.build();

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions