2024-04-20 15:06:50 +00:00
|
|
|
using AIStudio.Settings;
|
|
|
|
|
|
|
|
using Microsoft.JSInterop;
|
|
|
|
|
|
|
|
namespace AIStudio.Provider;
|
|
|
|
|
|
|
|
public class NoProvider : IProvider
|
|
|
|
{
|
|
|
|
#region Implementation of IProvider
|
|
|
|
|
|
|
|
public string Id => "none";
|
|
|
|
|
|
|
|
public string InstanceName { get; set; } = "None";
|
|
|
|
|
2024-04-20 15:13:32 +00:00
|
|
|
public async IAsyncEnumerable<string> GetChatCompletion(IJSRuntime jsRuntime, SettingsManager settings, Model chatModel, Thread chatThread)
|
|
|
|
{
|
|
|
|
await Task.CompletedTask;
|
|
|
|
yield return "";
|
|
|
|
}
|
|
|
|
|
|
|
|
public Task<IList<Model>> GetModels(IJSRuntime jsRuntime, SettingsManager settings) => Task.FromResult<IList<Model>>(new List<Model>());
|
2024-04-20 15:06:50 +00:00
|
|
|
|
|
|
|
#endregion
|
|
|
|
}
|