Skip to content

Conversation

ServeurpersoCom
Copy link
Collaborator

@ServeurpersoCom ServeurpersoCom commented Oct 16, 2025

  • Purely visual and diagnostic change, no effect on model context, prompt construction, or inference behavior
  • Introduces full support for delta.tool_calls streaming from Harmony-compatible models
  • Adds parsing, incremental merging, and live updates of tool-call deltas in ChatService
  • Extends chat store, database schema, and message model to persist toolCalls content alongside reasoning traces
  • Implements new Svelte components ChatMessageToolCallBlock and ChatMessageToolCallItem for structured display of tool-call payloads
  • Adds a fallback raw string mode for malformed or non-JSON tool-call chunks
  • Adds 'Show tool call chunks' toggle in chat settings and new config flag showToolCalls
  • Updates ApiChatCompletion types to define ToolCall and ToolCallDelta interfaces for typed Harmony compatibility
  • Integrates tool-call rendering in ChatMessageAssistant when showToolCalls is enabled

Close #16597

@ServeurpersoCom
Copy link
Collaborator Author

I have to do a little cleaning, the patch was not merged properly on my side. -> draft

@ServeurpersoCom ServeurpersoCom marked this pull request as ready for review October 18, 2025 21:09
@ServeurpersoCom
Copy link
Collaborator Author

This PR is now clean, but it was developed after this one: #16562

@ServeurpersoCom ServeurpersoCom marked this pull request as draft October 18, 2025 21:10
@ServeurpersoCom ServeurpersoCom force-pushed the harmony-toolcall-debug-option branch from cf29963 to c85d0a0 Compare October 18, 2025 21:17
…data capture

This change re-establishes a single, reliable source of truth for the active model:
fully aligned with the OpenAI-Compat API behavior

It introduces a unified metadata flow that captures the model field from both
streaming and non-streaming responses, wiring a new onModel callback through ChatService
The model name is now resolved directly from the API payload rather than relying on
server /props or UI assumptions

ChatStore records and persists the resolved model for each assistant message during
streaming, ensuring consistency across the UI and database
Type definitions for API and settings were also extended to include model metadata
and the onModel callback, completing the alignment with OpenAI-Compat semantics
…ersistence in chat UI

- Purely visual and diagnostic change, no effect on model context, prompt construction, or inference behavior
- Introduces full support for delta.tool_calls streaming from Harmony-compatible models
- Adds parsing, incremental merging, and live updates of tool-call deltas in ChatService
- Extends chat store, database schema, and message model to persist toolCalls content alongside reasoning traces
- Implements new Svelte components ChatMessageToolCallBlock and ChatMessageToolCallItem for structured display of tool-call payloads
- Adds a fallback raw string mode for malformed or non-JSON tool-call chunks
- Adds 'Show tool call chunks' toggle in chat settings and new config flag showToolCalls
- Updates ApiChatCompletion types to define ToolCall and ToolCallDelta interfaces for typed Harmony compatibility
- Integrates tool-call rendering in ChatMessageAssistant when showToolCalls is enabled
@ServeurpersoCom ServeurpersoCom force-pushed the harmony-toolcall-debug-option branch from 0fe776d to 02df5a1 Compare October 18, 2025 21:21
@ServeurpersoCom ServeurpersoCom marked this pull request as ready for review October 18, 2025 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Add a debug option to display OpenAI-Compatible toolcall chunks in the WebUI

1 participant