Fixed model name logging

This commit is contained in:
Thorsten Sommer 2026-01-18 14:04:28 +01:00
parent 14437d0e05
commit 9263e33bf2
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -223,7 +223,7 @@ public partial class VoiceRecorder : MSGComponentBase
{ {
this.Logger.LogWarning( this.Logger.LogWarning(
"The configured transcription provider '{ProviderName}' has a confidence level of '{ProviderLevel}', which is below the minimum required level of '{MinimumLevel}'.", "The configured transcription provider '{ProviderName}' has a confidence level of '{ProviderLevel}', which is below the minimum required level of '{MinimumLevel}'.",
transcriptionProviderSettings.Name, transcriptionProviderSettings.UsedLLMProvider,
providerConfidence.Level, providerConfidence.Level,
minimumLevel); minimumLevel);
await this.MessageBus.SendError(new(Icons.Material.Filled.VoiceChat, this.T("The configured transcription provider does not meet the minimum confidence level."))); await this.MessageBus.SendError(new(Icons.Material.Filled.VoiceChat, this.T("The configured transcription provider does not meet the minimum confidence level.")));
@ -240,7 +240,7 @@ public partial class VoiceRecorder : MSGComponentBase
} }
// Call the transcription API: // Call the transcription API:
this.Logger.LogInformation("Starting transcription with provider '{ProviderName}' and model '{ModelName}'.", transcriptionProviderSettings.Name, transcriptionProviderSettings.Model.DisplayName); this.Logger.LogInformation("Starting transcription with provider '{ProviderName}' and model '{ModelName}'.", transcriptionProviderSettings.UsedLLMProvider, transcriptionProviderSettings.Model.ToString());
var transcribedText = await provider.TranscribeAudioAsync(transcriptionProviderSettings.Model, this.finalRecordingPath, this.SettingsManager); var transcribedText = await provider.TranscribeAudioAsync(transcriptionProviderSettings.Model, this.finalRecordingPath, this.SettingsManager);
if (string.IsNullOrWhiteSpace(transcribedText)) if (string.IsNullOrWhiteSpace(transcribedText))