minor change
This commit is contained in:
parent
258be22d36
commit
d6e741957e
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue