Skip to content
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ private async Task StartAudioAsync()
try
{
_audioCts = new CancellationTokenSource();
var provider = SelectedService!.ProviderType;
var options = new AudioOptions
{
ModelId = SelectedModel?.Id,
Expand All @@ -46,7 +47,7 @@ private async Task StartAudioAsync()
Voice = SelectedVoice?.Data.Id,
Model = SelectedModel?.Data.Id,
Time = DateTimeOffset.Now,
Provider = SelectedService!.ProviderType,
Provider = provider,
};

await this.Get<IStorageService>().AddOrUpdateAudioSessionAsync(record, result.ToArray());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ private async Task StartDrawAsync()
try
{
_drawCts = new CancellationTokenSource();
var provider = SelectedService!.ProviderType;
var options = new DrawOptions
{
ModelId = SelectedModel?.Id,
Expand All @@ -44,7 +45,7 @@ private async Task StartDrawAsync()
Size = SelectedSize?.Data,
Model = SelectedModel?.Data.Id,
Time = DateTimeOffset.Now,
Provider = SelectedService!.ProviderType,
Provider = provider,
};

await this.Get<IStorageService>().AddOrUpdateDrawSessionAsync(record, result.ToArray());
Expand Down