Interface KernelHook.PreChatCompletionHook

    • Method Detail

      • cloneOptionsWithMessages

        static com.azure.ai.openai.models.ChatCompletionsOptions cloneOptionsWithMessages​(com.azure.ai.openai.models.ChatCompletionsOptions options,
                                                                                          List<com.azure.ai.openai.models.ChatRequestMessage> messages)
        A convenience method to clone the options with the messages from the event.
        Parameters:
        options - the options to clone
        messages - the messages to use
        Returns:
        the new options