类的使用
io.agentscope.core.model.OpenAIChatModel.Builder
使用OpenAIChatModel.Builder的程序包
-
io.agentscope.core.model中OpenAIChatModel.Builder的使用
修饰符和类型方法说明Sets the API key for OpenAI authentication.Sets a custom base URL for OpenAI API.static OpenAIChatModel.BuilderOpenAIChatModel.builder()Creates a new builder for OpenAIChatModel.OpenAIChatModel.Builder.endpointPath(String endpointPath) Sets a custom endpoint path for the API request.OpenAIChatModel.Builder.formatter(Formatter<OpenAIMessage, OpenAIResponse, OpenAIRequest> formatter) Sets the message formatter to use.OpenAIChatModel.Builder.generateOptions(GenerateOptions options) Sets the default generation options.OpenAIChatModel.Builder.httpTransport(HttpTransport httpTransport) Sets the HTTP transport to use.Sets the model name to use.OpenAIChatModel.Builder.stream(boolean stream) Sets whether streaming should be enabled.