类的使用
io.agentscope.core.model.transport.ProxyConfig
使用ProxyConfig的程序包
程序包
说明
-
io.agentscope.core.model中ProxyConfig的使用
参数类型为ProxyConfig的io.agentscope.core.model中的方法修饰符和类型方法说明AnthropicChatModel.Builder.proxy(ProxyConfig proxyConfig) Sets the proxy configuration for HTTP traffic.DashScopeChatModel.Builder.proxy(ProxyConfig proxyConfig) Sets the proxy configuration for HTTP traffic.GeminiChatModel.Builder.proxy(ProxyConfig proxyConfig) Sets the proxy configuration for HTTP traffic.OllamaChatModel.Builder.proxy(ProxyConfig proxyConfig) Sets the proxy configuration for HTTP traffic.OpenAIChatModel.Builder.proxy(ProxyConfig proxyConfig) Sets the proxy configuration for HTTP traffic.参数类型为ProxyConfig的io.agentscope.core.model中的构造器限定符构造器说明AnthropicChatModel(String baseUrl, String apiKey, String modelName, boolean streamEnabled, GenerateOptions defaultOptions, AnthropicBaseFormatter formatter, ProxyConfig proxyConfig) Creates a new Anthropic chat model instance. -
io.agentscope.core.model.transport中ProxyConfig的使用
修饰符和类型方法说明ProxyConfig.Builder.build()Build the ProxyConfig.HttpTransportConfig.getProxyConfig()Get the proxy configuration.static ProxyConfigCreate a simple HTTP proxy configuration without authentication.static ProxyConfigCreate an HTTP proxy configuration with authentication.static ProxyConfigCreate a simple SOCKS4 proxy configuration.static ProxyConfigCreate a simple SOCKS5 proxy configuration without authentication.static ProxyConfigCreate a SOCKS5 proxy configuration with authentication.修饰符和类型方法说明HttpTransportConfig.Builder.proxy(ProxyConfig proxyConfig) Set the proxy configuration. -
io.agentscope.core.model.transport.websocket中ProxyConfig的使用
修饰符和类型方法说明WebSocketTransportConfig.Builder.proxy(ProxyConfig proxyConfig) Set the proxy configuration.