Class MergeUtils
java.lang.Object
org.springframework.ai.azure.openai.MergeUtils
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.azure.ai.openai.models.ChatCompletions
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.
-
Constructor Details
-
MergeUtils
public MergeUtils()
-
-
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.
-