Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions src/RitsukageBotForDiscord/Modules/AI/AiInteractions.Chatting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,15 @@ await ModifyOriginalResponseAsync(x =>
var showPreprocessingAction = ChatClientProvider.GetConfig<bool>("ShowPreprocessingAction");
if (preprocessingActionData is not null && showPreprocessingAction)
{
var embedBuilder = new EmbedBuilder();
embedBuilder.WithDescription(string.Join(Environment.NewLine,
preprocessingActionData.Select(x => x.Action)));
embedBuilder.WithColor(Color.DarkPurple);
preprocessingEmbed = embedBuilder.Build();
var preprocessingActionDataStr = string.Join(Environment.NewLine,
preprocessingActionData.Select(x => x.Action));
if (!string.IsNullOrWhiteSpace(preprocessingActionDataStr))
{
var embedBuilder = new EmbedBuilder();
embedBuilder.WithDescription(preprocessingActionDataStr);
embedBuilder.WithColor(Color.DarkPurple);
preprocessingEmbed = embedBuilder.Build();
}
}

var generatingEmbed = new EmbedBuilder();
Expand Down
Loading