Skip to content

Commit 482192f

Browse files
authored
webui : store reasoning_content so it is sent back in subsequent requests (ggml-org#21249)
1 parent 71a81f6 commit 482192f

4 files changed

Lines changed: 42 additions & 40 deletions

File tree

tools/server/public/bundle.js

Lines changed: 39 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/server/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<div style="display: contents">
1919
<script>
2020
{
21-
__sveltekit_1wqaxod = {
21+
__sveltekit_10avopp = {
2222
base: new URL('.', location).pathname.slice(0, -1)
2323
};
2424

tools/server/webui/src/lib/stores/agentic.svelte.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ class AgenticStore {
474474
sessionMessages.push({
475475
role: MessageRole.ASSISTANT,
476476
content: turnContent || undefined,
477+
reasoning_content: turnReasoningContent || undefined,
477478
tool_calls: normalizedCalls
478479
});
479480

tools/server/webui/src/lib/types/agentic.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export type AgenticMessage =
4141
| {
4242
role: MessageRole.ASSISTANT;
4343
content?: string | ApiChatMessageContentPart[];
44+
reasoning_content?: string;
4445
tool_calls?: AgenticToolCallPayload[];
4546
}
4647
| {

0 commit comments

Comments
 (0)