Update DuplexPipeline tool wait timeout to 60 seconds and modify DebugDrawer to improve tool call ID handling. Ensure better integration and functionality across components.
This commit is contained in:
@@ -64,7 +64,7 @@ class DuplexPipeline:
|
||||
_SENTENCE_TRAILING_CHARS = frozenset({"。", "!", "?", ".", "!", "?", "…", "~", "~", "\n"})
|
||||
_SENTENCE_CLOSERS = frozenset({'"', "'", "”", "’", ")", "]", "}", ")", "】", "」", "』", "》"})
|
||||
_MIN_SPLIT_SPOKEN_CHARS = 6
|
||||
_TOOL_WAIT_TIMEOUT_SECONDS = 15.0
|
||||
_TOOL_WAIT_TIMEOUT_SECONDS = 60.0
|
||||
_SERVER_TOOL_TIMEOUT_SECONDS = 15.0
|
||||
TRACK_AUDIO_IN = "audio_in"
|
||||
TRACK_AUDIO_OUT = "audio_out"
|
||||
|
||||
@@ -3070,7 +3070,7 @@ export const DebugDrawer: React.FC<{
|
||||
|
||||
if (type === 'assistant.tool_call') {
|
||||
const toolCall = payload?.tool_call || {};
|
||||
const toolCallId = String(toolCall?.id || '').trim();
|
||||
const toolCallId = String(payload?.tool_call_id || toolCall?.id || '').trim();
|
||||
const toolName = String(toolCall?.function?.name || toolCall?.name || 'unknown_tool');
|
||||
const toolDisplayName = String(payload?.tool_display_name || toolCall?.displayName || toolName);
|
||||
const executor = String(toolCall?.executor || 'server').toLowerCase();
|
||||
|
||||
Reference in New Issue
Block a user