webui : store reasoning_content so it is sent back in subsequent requests (#21249)
This commit is contained in:
parent
71a81f6fcc
commit
482192f12d
File diff suppressed because one or more lines are too long
|
|
@ -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)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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[];
|
||||||
}
|
}
|
||||||
| {
|
| {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue