mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-02-05 20:29:07 +00:00
32 lines
1.1 KiB
C#
32 lines
1.1 KiB
C#
using System.Runtime.CompilerServices;
|
|
|
|
using AIStudio.Chat;
|
|
|
|
namespace AIStudio.Provider;
|
|
|
|
public class NoProvider : IProvider
|
|
{
|
|
#region Implementation of IProvider
|
|
|
|
public string Id => "none";
|
|
|
|
public string InstanceName { get; set; } = "None";
|
|
|
|
public Task<IEnumerable<Model>> GetTextModels(string? apiKeyProvisional = null, CancellationToken token = default) => Task.FromResult<IEnumerable<Model>>([]);
|
|
|
|
public Task<IEnumerable<Model>> GetImageModels(string? apiKeyProvisional = null, CancellationToken token = default) => Task.FromResult<IEnumerable<Model>>([]);
|
|
|
|
public async IAsyncEnumerable<string> StreamChatCompletion(Model chatModel, ChatThread chatChatThread, [EnumeratorCancellation] CancellationToken token = default)
|
|
{
|
|
await Task.FromResult(0);
|
|
yield break;
|
|
}
|
|
|
|
public async IAsyncEnumerable<ImageURL> StreamImageCompletion(Model imageModel, string promptPositive, string promptNegative = FilterOperator.String.Empty, ImageURL referenceImageURL = default, [EnumeratorCancellation] CancellationToken token = default)
|
|
{
|
|
await Task.FromResult(0);
|
|
yield break;
|
|
}
|
|
|
|
#endregion
|
|
} |