Implemented NOP op

This commit is contained in:
Thorsten Sommer 2024-04-20 17:13:32 +02:00
parent 407066a5a0
commit cd5f882452
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -11,10 +11,14 @@ public class NoProvider : IProvider
public string Id => "none";
public string InstanceName { get; set; } = "None";
public IAsyncEnumerable<string> GetChatCompletion(IJSRuntime jsRuntime, SettingsManager settings, Model chatModel, Thread chatThread) => throw new NotImplementedException();
public Task<IList<Model>> GetModels(IJSRuntime jsRuntime, SettingsManager settings) => throw new NotImplementedException();
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
}