Class OpenAiServiceBuilder<T,​U extends OpenAiServiceBuilder<T,​U>>

    • Constructor Detail

      • OpenAiServiceBuilder

        public OpenAiServiceBuilder()
    • Method Detail

      • withModelId

        public U withModelId​(String modelId)
        Sets the model ID for the service.

        If no deployment name is provided, it will be assumed that this model ID is also the deployment name.

        Parameters:
        modelId - The model ID
        Returns:
        The builder
      • withDeploymentName

        public U withDeploymentName​(String deploymentName)
        Sets the deployment name for the service if required.
        Parameters:
        deploymentName - The deployment name
        Returns:
        The builder
      • withOpenAIAsyncClient

        public U withOpenAIAsyncClient​(com.azure.ai.openai.OpenAIAsyncClient client)
        Sets the OpenAI client for the service
        Parameters:
        client - The OpenAI client
        Returns:
        The builder
      • withServiceId

        public U withServiceId​(String serviceId)
        Sets the service ID for the service
        Parameters:
        serviceId - The service ID
        Returns:
        The builder