mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-04 17:49:40 +00:00
Merge branch 'main' into custom-tokenizer
This commit is contained in:
commit
e3cb7e9734
165 files changed
+4739
-1738
No files matched your search
@@ -387,10 +387,12 @@ public partial class ProviderDialog : MSGComponentBase, ISecretId
|
||||
|
||||
try
|
||||
{
|
||||
var models = await provider.GetTextModels(this.dataAPIKey);
|
||||
var result = await provider.GetTextModels(this.dataAPIKey);
|
||||
if (!result.Success)
|
||||
this.dataLoadingModelsIssue = result.FailureReason.ToUserMessage(provider.InstanceName);
|
||||
|
||||
// Order descending by ID means that the newest models probably come first:
|
||||
var orderedModels = models.OrderByDescending(n => n.Id);
|
||||
var orderedModels = result.Models.OrderByDescending(n => n.Id);
|
||||
|
||||
this.availableModels.Clear();
|
||||
this.availableModels.AddRange(orderedModels);
|
||||
|
||||
Reference in new issue
Block a user