Merge pull request #1127 from iceljc/features/refine-vector-store · SciSharp/BotSharp@4e13310 · GitHub
Skip to content

Commit 4e13310

Browse files
authored
Merge pull request #1127 from iceljc/features/refine-vector-store
add reasoning settings
2 parents 4d13cd2 + d19a4e1 commit 4e13310

3 files changed

Lines changed: 32 additions & 22 deletions

File tree

‎Directory.Packages.props‎

Lines changed: 1 addition & 1 deletion

‎src/Infrastructure/BotSharp.Abstraction/MLTasks/Settings/LlmModelSetting.cs‎

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,32 @@ public class LlmModelSetting
4747
/// </summary>
4848
public int Dimension { get; set; }
4949

50-
public LlmCost Cost { get; set; } = new();
50+
/// <summary>
51+
/// Settings for reasoning model
52+
/// </summary>
53+
public ReasoningSetting? Reasoning { get; set; }
54+
55+
/// <summary>
56+
/// Settings for llm cost
57+
/// </summary>
58+
public LlmCostSetting Cost { get; set; } = new();
5159

5260
public override string ToString()
5361
{
5462
return $"[{Type}] {Name} {Endpoint}";
5563
}
5664
}
5765

66+
public class ReasoningSetting
67+
{
68+
public float Temperature { get; set; } = 1.0f;
69+
public string? EffortLevel { get; set; }
70+
}
71+
5872
/// <summary>
5973
/// Cost per 1K tokens
6074
/// </summary>
61-
public class LlmCost
75+
public class LlmCostSetting
6276
{
6377
// Input
6478
public float TextInputCost { get; set; } = 0f;

‎src/Plugins/BotSharp.Plugin.OpenAI/Providers/Chat/ChatCompletionProvider.cs‎

Lines changed: 15 additions & 19 deletions

0 commit comments

Comments
 (0)