Class MergeUtils

java.lang.Object
org.springframework.ai.azure.openai.MergeUtils

public final class MergeUtils extends Object
Utility class for merging ChatCompletions instances and their associated objects. Uses reflection to create instances with private constructors and set private fields.
Since:
1.0.0
Author:
Grogdunn, Christian Tzolov
  • Method Details

    • emptyChatCompletions

      public static com.azure.ai.openai.models.ChatCompletions emptyChatCompletions()
      Returns:
      an empty ChatCompletions instance.
    • mergeChatCompletions

      public static com.azure.ai.openai.models.ChatCompletions mergeChatCompletions(com.azure.ai.openai.models.ChatCompletions left, com.azure.ai.openai.models.ChatCompletions right)
      Merge two ChatCompletions instances into a single ChatCompletions instance.
      Parameters:
      left - the left ChatCompletions instance.
      right - the right ChatCompletions instance.
      Returns:
      a merged ChatCompletions instance.