INNER CODE UNIT · C#
endIndex
Eppie-io/Eppie-App · src/Eppie.App/Eppie.AI/Service.cs:164
int endIndex = text.IndexOf(EndThinkBlock, StringComparison.InvariantCultureIgnoreCase) + EndThinkBlock.Length;
if (startIndex != -1 && endIndex != -1)
{
text = text.Remove(startIndex, endIndex - startIndex);
}
}
return text.Trim();
}
public ChatOptions GetDefaultChatOptions(IChatClient? chatClient)
{
var chatOptions = chatClient?.GetService<ChatOptions>();
return chatOptions ?? new ChatOptions
{
MaxOutputTokens = defaultMaxLength,
Temperature = defaultTemperature,
TopP = defaultTopP,