mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-02-05 20:29:07 +00:00
15 lines
427 B
C#
15 lines
427 B
C#
using AIStudio.Settings;
|
|
using Microsoft.JSInterop;
|
|
|
|
namespace AIStudio.Provider;
|
|
|
|
public interface IProvider
|
|
{
|
|
public string Id { get; }
|
|
|
|
public string InstanceName { get; set; }
|
|
|
|
public IAsyncEnumerable<string> GetChatCompletion(IJSRuntime jsRuntime, SettingsManager settings, Model chatModel, Thread chatThread);
|
|
|
|
public Task<IList<Model>> GetModels(IJSRuntime jsRuntime, SettingsManager settings);
|
|
} |