mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-02-05 17:49:05 +00:00
Optimized method calls
This commit is contained in:
parent
722c7e943d
commit
0b4547d5b3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user