minor change

This commit is contained in:
Jicheng Lu 2023-12-13 14:41:47 -06:00
parent 258be22d36
commit d6e741957e
3 changed files with 4 additions and 1 deletions

View file

@ -100,6 +100,7 @@ public class Agent
AllowRouting = agent.AllowRouting,
Profiles = agent.Profiles,
RoutingRules = agent.RoutingRules,
LlmConfig = agent.LlmConfig,
CreatedDateTime = agent.CreatedDateTime,
UpdatedDateTime = agent.UpdatedDateTime,
};

View file

@ -6,11 +6,13 @@ public class AgentLlmConfig
/// Completion Provider
/// </summary>
[JsonPropertyName("provider")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Provider { get; set; }
/// <summary>
/// Model name
/// </summary>
[JsonPropertyName("model")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Model { get; set; }
}

View file

@ -5,7 +5,7 @@ namespace BotSharp.Plugin.MongoStorage.Models;
public class AgentLlmConfigMongoElement
{
public string? Provider { get; set; }
public string Model { get; set; }
public string? Model { get; set; }
public static AgentLlmConfigMongoElement? ToMongoElement(AgentLlmConfig? config)
{