fix: repair agent model converter build
This commit is contained in:
@@ -60,8 +60,8 @@ public sealed class AgentModelConfigConverter : JsonConverter<AgentModelConfig>
|
|||||||
|
|
||||||
if (reader.TokenType == JsonTokenType.String)
|
if (reader.TokenType == JsonTokenType.String)
|
||||||
{
|
{
|
||||||
var primary = reader.GetString();
|
var primaryModel = reader.GetString();
|
||||||
return string.IsNullOrWhiteSpace(primary) ? null : new AgentModelConfig { Primary = primary };
|
return string.IsNullOrWhiteSpace(primaryModel) ? null : new AgentModelConfig { Primary = primaryModel };
|
||||||
}
|
}
|
||||||
|
|
||||||
if (reader.TokenType != JsonTokenType.StartObject)
|
if (reader.TokenType != JsonTokenType.StartObject)
|
||||||
@@ -214,8 +214,6 @@ public sealed class AgentService(IConfiguration configuration, IAgentRuntime run
|
|||||||
return configs
|
return configs
|
||||||
.Where(config => !string.IsNullOrWhiteSpace(config.Id))
|
.Where(config => !string.IsNullOrWhiteSpace(config.Id))
|
||||||
.Select(config => config.Id.Trim().ToLowerInvariant())
|
.Select(config => config.Id.Trim().ToLowerInvariant())
|
||||||
.DefaultIfEmpty()
|
|
||||||
.Where(id => !string.IsNullOrWhiteSpace(id))
|
|
||||||
.ToHashSet(StringComparer.OrdinalIgnoreCase);
|
.ToHashSet(StringComparer.OrdinalIgnoreCase);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user