AzureOpenAIExtensions.Trim(List<ChatMessage>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Trims list of chat messages.
public static void Trim(this System.Collections.Generic.List<OpenAI.Chat.ChatMessage> messages);
static member Trim : System.Collections.Generic.List<OpenAI.Chat.ChatMessage> -> unit
<Extension()>
Public Sub Trim (messages As List(Of ChatMessage))
Parameters
- messages
- List<OpenAI.Chat.ChatMessage>