Uses of Class
io.agentscope.extensions.model.openai.OpenAIChatModel.Builder
Packages that use OpenAIChatModel.Builder
-
Uses of OpenAIChatModel.Builder in io.agentscope.extensions.model.openai
Methods in io.agentscope.extensions.model.openai that return OpenAIChatModel.BuilderModifier and TypeMethodDescriptionSets 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.contextWindowSize(int contextWindowSize) OpenAIChatModel.Builder.endpointPath(String endpointPath) Sets a custom endpoint path for the API request.OpenAIChatModel.Builder.formatter(io.agentscope.core.formatter.Formatter<OpenAIMessage, OpenAIResponse, OpenAIRequest> formatter) Sets the message formatter to use.OpenAIChatModel.Builder.generateOptions(io.agentscope.core.model.GenerateOptions options) Sets the default generation options.OpenAIChatModel.Builder.httpTransport(io.agentscope.core.model.transport.HttpTransport httpTransport) Sets the HTTP transport to use.Sets the model name to use.OpenAIChatModel.Builder.nativeStructuredOutput(boolean nativeStructuredOutput) Sets whether this model supports native structured output viaresponse_format.OpenAIChatModel.Builder.nativeStructuredOutputWithTools(boolean nativeStructuredOutputWithTools) Sets whether this model correctly handles native structured output (response_format) alongside tool calling.OpenAIChatModel.Builder.proxy(io.agentscope.core.model.transport.ProxyConfig proxyConfig) Sets the proxy configuration for HTTP traffic.OpenAIChatModel.Builder.stream(boolean stream) Sets whether streaming should be enabled.Methods in io.agentscope.extensions.model.openai with parameters of type OpenAIChatModel.BuilderModifier and TypeMethodDescriptionstatic voidOpenAIModelProviderSupport.applyAdvancedOptions(OpenAIChatModel.Builder builder, io.agentscope.core.model.ModelCreationContext context) static voidOpenAIModelProviderSupport.applyAdvancedOptions(OpenAIChatModel.Builder builder, io.agentscope.core.model.ModelCreationContext context, io.agentscope.core.model.GenerateOptions generateOptions)