mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-11 19:33:48 +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
@@ -42,6 +42,11 @@ public sealed record ResponsesResponse
|
||||
}));
|
||||
}
|
||||
|
||||
public string GetThinkingOutput() => string.Concat(this.Output
|
||||
.Where(x => ReadString(x, "type").Equals("reasoning", StringComparison.Ordinal))
|
||||
.SelectMany(x => ReadArrayItems(x, "summary").Concat(ReadArrayItems(x, "content")))
|
||||
.Select(x => ReadString(x, "text")));
|
||||
|
||||
public IReadOnlyList<Source> GetSources() => this.Output
|
||||
.Where(x => ReadString(x, "type").Equals("message", StringComparison.Ordinal))
|
||||
.SelectMany(ReadContentItems)
|
||||
|
||||
Reference in new issue
Block a user