Added documentation

This commit is contained in:
tsommer committed 2024-05-04 10:55:00 +02:00
1 parent 0859b1f2ec
commit 418f458118
11 files changed
+162 -3

No files matched your search

@@ -3,10 +3,20 @@ using Microsoft.JSInterop;
namespace AIStudio.Provider;
/// <summary>
/// A common interface for all providers.
/// </summary>
public interface IProvider
{
/// <summary>
/// The provider's ID.
/// </summary>
public string Id { get; }
/// <summary>
/// The provider's instance name. Useful for multiple instances of the same provider,
/// e.g., to distinguish between different OpenAI API keys.
/// </summary>
public string InstanceName { get; set; }
public IAsyncEnumerable<string> GetChatCompletion(IJSRuntime jsRuntime, SettingsManager settings, Model chatModel, Thread chatThread);