mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-02-05 23:09:07 +00:00
24 lines
626 B
C#
24 lines
626 B
C#
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";
|
|
|
|
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>());
|
|
|
|
#endregion
|
|
} |