mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 08:19:47 +00:00
Implemented NOP op
This commit is contained in:
parent
407066a5a0
commit
cd5f882452
@ -12,9 +12,13 @@ public class NoProvider : IProvider
|
||||
|
||||
public string InstanceName { get; set; } = "None";
|
||||
|
||||
public IAsyncEnumerable<string> GetChatCompletion(IJSRuntime jsRuntime, SettingsManager settings, Model chatModel, Thread chatThread) => 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) => throw new NotImplementedException();
|
||||
public Task<IList<Model>> GetModels(IJSRuntime jsRuntime, SettingsManager settings) => Task.FromResult<IList<Model>>(new List<Model>());
|
||||
|
||||
#endregion
|
||||
}
|
Loading…
Reference in New Issue
Block a user