mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-13 00:33:47 +00:00
Add per-answer thinking disclosure
This commit is contained in:
1 parent
c7b42bee96
commit
bbbcdddc91
29 files changed
+360
-37
No files matched your search
@@ -1,7 +1,17 @@
|
||||
using System.Text.Json;
|
||||
|
||||
using AIStudio.Provider.OpenAI;
|
||||
|
||||
namespace AIStudio.Provider.Perplexity;
|
||||
|
||||
/// <summary>
|
||||
/// The delta text of a choice.
|
||||
/// </summary>
|
||||
/// <param name="Content">The content of the delta text.</param>
|
||||
public readonly record struct Delta(string Content);
|
||||
/// <param name="ReasoningContent">OpenAI-compatible reasoning content.</param>
|
||||
/// <param name="Reasoning">OpenRouter-compatible reasoning content.</param>
|
||||
/// <param name="ReasoningDetails">Structured reasoning details.</param>
|
||||
public readonly record struct Delta(string Content, string? ReasoningContent, string? Reasoning, IList<JsonElement>? ReasoningDetails)
|
||||
{
|
||||
public string Thinking => ThinkingContent.Get(this.ReasoningContent, this.Reasoning, this.ReasoningDetails);
|
||||
}
|
||||
Reference in new issue
Block a user