webui : store reasoning_content so it is sent back in subsequent requests (#21249)

This commit is contained in:
Aldehir Rojas 2026-04-07 06:32:44 -05:00 committed by GitHub
parent 71a81f6fcc
commit 482192f12d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 42 additions and 40 deletions

File diff suppressed because one or more lines are too long

View File

@ -18,7 +18,7 @@
<div style="display: contents"> <div style="display: contents">
<script> <script>
{ {
__sveltekit_1wqaxod = { __sveltekit_10avopp = {
base: new URL('.', location).pathname.slice(0, -1) base: new URL('.', location).pathname.slice(0, -1)
}; };

View File

@ -474,6 +474,7 @@ class AgenticStore {
sessionMessages.push({ sessionMessages.push({
role: MessageRole.ASSISTANT, role: MessageRole.ASSISTANT,
content: turnContent || undefined, content: turnContent || undefined,
reasoning_content: turnReasoningContent || undefined,
tool_calls: normalizedCalls tool_calls: normalizedCalls
}); });

View File

@ -41,6 +41,7 @@ export type AgenticMessage =
| { | {
role: MessageRole.ASSISTANT; role: MessageRole.ASSISTANT;
content?: string | ApiChatMessageContentPart[]; content?: string | ApiChatMessageContentPart[];
reasoning_content?: string;
tool_calls?: AgenticToolCallPayload[]; tool_calls?: AgenticToolCallPayload[];
} }
| { | {