refactor: modernize code, improve performance, and clean up various components.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using System.Net.Sockets;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Toak.Core.Interfaces;
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Toak.Configuration;
|
||||
|
||||
namespace Toak.Core.Interfaces;
|
||||
@@ -13,13 +10,13 @@ public interface IConfigProvider
|
||||
|
||||
public interface ISpeechClient
|
||||
{
|
||||
Task<string> TranscribeAsync(string filePath, string language = "", string model = Toak.Core.Constants.Defaults.WhisperModel);
|
||||
Task<string> TranscribeAsync(string filePath, string language = "", string model = Constants.Defaults.WhisperModel);
|
||||
}
|
||||
|
||||
public interface ILlmClient
|
||||
{
|
||||
Task<string> RefineTextAsync(string rawTranscript, string systemPrompt, string model = Toak.Core.Constants.Defaults.LlmModel);
|
||||
IAsyncEnumerable<string> RefineTextStreamAsync(string rawTranscript, string systemPrompt, string model = Toak.Core.Constants.Defaults.LlmModel);
|
||||
Task<string> RefineTextAsync(string rawTranscript, string systemPrompt, string model = Constants.Defaults.LlmModel);
|
||||
IAsyncEnumerable<string> RefineTextStreamAsync(string rawTranscript, string systemPrompt, string model = Constants.Defaults.LlmModel);
|
||||
}
|
||||
|
||||
public interface IAudioRecorder
|
||||
|
||||
Reference in New Issue
Block a user