-
-
Notifications
You must be signed in to change notification settings - Fork 629
Expand file tree
/
Copy pathLlmConfigBase.cs
More file actions
32 lines (27 loc) · 1000 Bytes
/
LlmConfigBase.cs
File metadata and controls
32 lines (27 loc) · 1000 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
namespace BotSharp.Abstraction.Models;
public class LlmConfigBase : LlmProviderModel
{
/// <summary>
/// Llm maximum output tokens
/// </summary>
[JsonPropertyName("max_output_tokens")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? MaxOutputTokens { get; set; }
/// <summary>
/// Llm reasoning effort level, thinking level
/// </summary>
[JsonPropertyName("reasoning_effort_level")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? ReasoningEffortLevel { get; set; }
}
public class LlmProviderModel
{
[JsonPropertyName("provider")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Provider { get; set; }
[JsonPropertyName("model")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Model { get; set; }
[JsonIgnore]
public bool IsValid => !string.IsNullOrEmpty(Provider) && !string.IsNullOrEmpty(Model);
}