mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-09 21:53:47 +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 />
|
||||
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 />
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user