From 873c5d586c3ba423ae0f2b2791b17bb033d3d9a6 Mon Sep 17 00:00:00 2001 From: DevOps Date: Wed, 24 Jun 2026 01:26:56 +0200 Subject: [PATCH] fix: repair agent model converter build --- backend/Services/AgentService.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/backend/Services/AgentService.cs b/backend/Services/AgentService.cs index 3981c98..538a3c2 100644 --- a/backend/Services/AgentService.cs +++ b/backend/Services/AgentService.cs @@ -60,8 +60,8 @@ public sealed class AgentModelConfigConverter : JsonConverter if (reader.TokenType == JsonTokenType.String) { - var primary = reader.GetString(); - return string.IsNullOrWhiteSpace(primary) ? null : new AgentModelConfig { Primary = primary }; + var primaryModel = reader.GetString(); + return string.IsNullOrWhiteSpace(primaryModel) ? null : new AgentModelConfig { Primary = primaryModel }; } if (reader.TokenType != JsonTokenType.StartObject) @@ -214,8 +214,6 @@ public sealed class AgentService(IConfiguration configuration, IAgentRuntime run return configs .Where(config => !string.IsNullOrWhiteSpace(config.Id)) .Select(config => config.Id.Trim().ToLowerInvariant()) - .DefaultIfEmpty() - .Where(id => !string.IsNullOrWhiteSpace(id)) .ToHashSet(StringComparer.OrdinalIgnoreCase); }