Improved provider logging (#551)
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-pc-windows-msvc.exe, win-x64, windows-latest, x86_64-pc-windows-msvc, nsis updater) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-unknown-linux-gnu, linux-x64, ubuntu-22.04, x86_64-unknown-linux-gnu, appimage deb updater) (push) Blocked by required conditions
Build and Release / Prepare & create release (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-apple-darwin, osx-x64, macos-latest, x86_64-apple-darwin, dmg updater) (push) Blocked by required conditions
Build and Release / Read metadata (push) Waiting to run
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-apple-darwin, osx-arm64, macos-latest, aarch64-apple-darwin, dmg updater) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-pc-windows-msvc.exe, win-arm64, windows-latest, aarch64-pc-windows-msvc, nsis updater) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-unknown-linux-gnu, linux-arm64, ubuntu-22.04-arm, aarch64-unknown-linux-gnu, appimage deb updater) (push) Blocked by required conditions
Build and Release / Publish release (push) Blocked by required conditions

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2025-09-03 21:25:17 +02:00
1 parent 70e64f2d14
commit 6a37ce6d25
25 files changed
+100 -82

No files matched your search

+7 -6
View File
@@ -10,6 +10,8 @@ namespace AIStudio.Chat;
/// </summary>
public sealed record ChatThread
{
private static readonly ILogger<ChatThread> LOGGER = Program.LOGGER_FACTORY.CreateLogger<ChatThread>();
/// <summary>
/// The unique identifier of the chat thread.
/// </summary>
@@ -82,9 +84,8 @@ public sealed record ChatThread
/// </remarks>
/// <param name="settingsManager">The settings manager instance to use.</param>
/// <param name="chatThread">The chat thread to prepare the system prompt for.</param>
/// <param name="logger">The logger instance to use.</param>
/// <returns>The prepared system prompt.</returns>
public string PrepareSystemPrompt(SettingsManager settingsManager, ChatThread chatThread, ILogger logger)
public string PrepareSystemPrompt(SettingsManager settingsManager, ChatThread chatThread)
{
//
// Use the information from the chat template, if provided. Otherwise, use the default system prompt
@@ -121,7 +122,7 @@ public sealed record ChatThread
// default system prompt:
chatThread = chatThread with { SystemPrompt = systemPromptTextWithChatTemplate };
logger.LogInformation(logMessage);
LOGGER.LogInformation(logMessage);
//
// Add augmented data, if available:
@@ -139,9 +140,9 @@ public sealed record ChatThread
};
if(isAugmentedDataAvailable)
logger.LogInformation("Augmented data is available for the chat thread.");
LOGGER.LogInformation("Augmented data is available for the chat thread.");
else
logger.LogInformation("No augmented data is available for the chat thread.");
LOGGER.LogInformation("No augmented data is available for the chat thread.");
//
@@ -177,7 +178,7 @@ public sealed record ChatThread
}
}
logger.LogInformation(logMessage);
LOGGER.LogInformation(logMessage);
return systemPromptText;
}