mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-24 07:13:48 +00:00
Optimized method calls
This commit is contained in:
1 file changed
+2
-2
@@ -157,13 +157,13 @@ public sealed class ProviderOpenAI() : BaseProvider("https://api.openai.com/v1/"
|
|||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public Task<IEnumerable<Model>> GetTextModels(IJSRuntime jsRuntime, SettingsManager settings, CancellationToken token = default)
|
public Task<IEnumerable<Model>> GetTextModels(IJSRuntime jsRuntime, SettingsManager settings, CancellationToken token = default)
|
||||||
{
|
{
|
||||||
return await this.LoadModels(jsRuntime, settings, "gpt-", token);
|
return this.LoadModels(jsRuntime, settings, "gpt-", token);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public Task<IEnumerable<Model>> GetImageModels(IJSRuntime jsRuntime, SettingsManager settings, CancellationToken token = default)
|
public Task<IEnumerable<Model>> GetImageModels(IJSRuntime jsRuntime, SettingsManager settings, CancellationToken token = default)
|
||||||
{
|
{
|
||||||
return await this.LoadModels(jsRuntime, settings, "dall-e-", token);
|
return this.LoadModels(jsRuntime, settings, "dall-e-", token);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
Reference in new issue
Block a user