LinkToolAddin/host/llm/entity/LlmJsonContent.cs

47 lines
1.3 KiB
C#

namespace LinkToolAddin.host.llm.entity
{
using System.Collections.Generic;
using Newtonsoft.Json;
public partial class LlmJsonContent
{
[JsonProperty("model")]
public string Model { get; set; }
[JsonProperty("messages")]
public List<Message> Messages { get; set; }
[JsonProperty("stream")]
public bool Stream { get; set; } = false;
[JsonProperty("temperature")]
public double Temperature { get; set; } = 0.7;
[JsonProperty("top_p")]
public double TopP { get; set; } = 1.0;
[JsonProperty("max_tokens")]
public int MaxTokens { get; set; } = 2048;
[JsonProperty("top_k")]
public int TopK { get; set; }
[JsonProperty("enable_thinking")]
public bool EnableThinking { get; set; } = true;
[JsonProperty("thinking_budget")]
public long ThinkingBudget { get; set; } = 1200;
[JsonProperty("incremental_output")]
public bool IncrementalOutput { get; set; } = true;
}
public partial class Message
{
[JsonProperty("role")]
public string Role { get; set; }
[JsonProperty("content")]
public string Content { get; set; }
}
}