mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-13 06:01:37 +00:00
Fixed model name logging
This commit is contained in:
parent
14437d0e05
commit
9263e33bf2
@ -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))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user