mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
Show tool call parameters along tool ouput
This commit is contained in:
parent
30d15c1b4b
commit
549237fb05
@ -252,7 +252,7 @@ async def chat_completion_tools_handler(
|
|||||||
"name": (f"TOOL:{tool_name}"),
|
"name": (f"TOOL:{tool_name}"),
|
||||||
},
|
},
|
||||||
"document": [tool_result],
|
"document": [tool_result],
|
||||||
"metadata": [{"source": (f"TOOL:{tool_name}")}],
|
"metadata": [{"source": (f"TOOL:{tool_name}"), "parameters": tool_function_params}],
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
@ -117,6 +117,12 @@
|
|||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
{#if document.metadata?.parameters}
|
||||||
|
<div class="text-sm font-medium dark:text-gray-300 mt-2">
|
||||||
|
{$i18n.t('Parameters')}
|
||||||
|
</div>
|
||||||
|
<pre class="text-sm dark:text-gray-400 bg-gray-50 dark:bg-gray-800 p-2 rounded-md overflow-auto max-h-40">{JSON.stringify(document.metadata.parameters, null, 2)}</pre>
|
||||||
|
{/if}
|
||||||
{#if showRelevance}
|
{#if showRelevance}
|
||||||
<div class="text-sm font-medium dark:text-gray-300 mt-2">
|
<div class="text-sm font-medium dark:text-gray-300 mt-2">
|
||||||
{$i18n.t('Relevance')}
|
{$i18n.t('Relevance')}
|
||||||
|
Loading…
Reference in New Issue
Block a user