Class ChatCompletionService.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • withModelId

        public ChatCompletionService.Builder withModelId​(String modelId)
        Sets the model ID to use with the ChatCompletion service.
        Parameters:
        modelId - the model ID to use with the ChatCompletion service
        Returns:
        this builder
      • withOpenAIAsyncClient

        public ChatCompletionService.Builder withOpenAIAsyncClient​(com.azure.ai.openai.OpenAIAsyncClient openAIClient)
        Sets the OpenAIClient to use for communication with the ChatCompletion service.
        Parameters:
        openAIClient - the OpenAIClient to use for communication with the ChatCompletion service
        Returns:
        this builder
      • withServiceId

        public ChatCompletionService.Builder withServiceId​(String serviceId)
        Sets the service ID to use with the ChatCompletion service.
        Parameters:
        serviceId - the service ID to use with the ChatCompletion service
        Returns:
        this builder