Mode model loading returning enumerable list of data

This commit is contained in:
tsommer committed 2024-05-19 16:14:05 +02:00
1 parent 6da453e022
commit 722c7e943d
3 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -53,7 +53,7 @@ public interface IProvider
/// <param name="settings">The settings manager to access the API key.</param>
/// <param name="token">The cancellation token.</param>
/// <returns>The list of text models.</returns>
public Task<IList<Model>> GetTextModels(IJSRuntime jsRuntime, SettingsManager settings, CancellationToken token = default);
public Task<IEnumerable<Model>> GetTextModels(IJSRuntime jsRuntime, SettingsManager settings, CancellationToken token = default);
/// <summary>
/// Load all possible image models that can be used with this provider.
@@ -62,5 +62,5 @@ public interface IProvider
/// <param name="settings">The settings manager to access the API key.</param>
/// <param name="token">The cancellation token.</param>
/// <returns>The list of image models.</returns>
public Task<IList<Model>> GetImageModels(IJSRuntime jsRuntime, SettingsManager settings, CancellationToken token = default);
public Task<IEnumerable<Model>> GetImageModels(IJSRuntime jsRuntime, SettingsManager settings, CancellationToken token = default);
}