dev.langchain4j.openai.spring.ProxyProperties Maven / Gradle / Ivy
package dev.langchain4j.openai.spring;
import lombok.Getter;
import lombok.Setter;
import java.net.InetSocketAddress;
import java.net.Proxy;
@Getter
@Setter
class ProxyProperties {
Proxy.Type type;
String host;
Integer port;
static Proxy convert(ProxyProperties proxy) {
if (proxy == null) {
return null;
}
return new Proxy(proxy.type, new InetSocketAddress(proxy.host, proxy.port));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy