类的使用
io.agentscope.core.model.DashScopeChatModel.Builder
-
io.agentscope.core.model中DashScopeChatModel.Builder的使用
修饰符和类型方法说明Sets the API key for DashScope authentication.Sets a custom base URL for DashScope API.static DashScopeChatModel.BuilderDashScopeChatModel.builder()Creates a new builder for DashScopeChatModel.DashScopeChatModel.Builder.defaultOptions(GenerateOptions options) Sets the default generation options.DashScopeChatModel.Builder.enableEncrypt(boolean enableEncrypt) Sets whether encryption should be enabled.DashScopeChatModel.Builder.enableSearch(Boolean enableSearch) Sets whether search enhancement should be enabled.DashScopeChatModel.Builder.enableThinking(Boolean enableThinking) Sets whether thinking mode should be enabled.DashScopeChatModel.Builder.endpointType(EndpointType endpointType) Sets the endpoint type to use for endpoint routing.DashScopeChatModel.Builder.formatter(Formatter<DashScopeMessage, DashScopeResponse, DashScopeRequest> formatter) Sets the message formatter to use.DashScopeChatModel.Builder.httpTransport(HttpTransport httpTransport) Sets the HTTP transport to use.Sets the model name to use.DashScopeChatModel.Builder.stream(boolean stream) Sets whether streaming should be enabled.