Merge branch 'main' into custom-tokenizer

This commit is contained in:
PaulKoudelka committed 2026-04-24 12:07:22 +02:00
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);