mirror of
https://github.com/open-webui/open-webui
synced 2025-06-16 19:31:52 +00:00
Merge pull request #14248 from diwakar-s-maurya/patch-3
feat: Show tool call parameters along tool ouput
This commit is contained in:
commit
99f88082ca
@ -252,7 +252,7 @@ async def chat_completion_tools_handler(
|
||||
"name": (f"TOOL:{tool_name}"),
|
||||
},
|
||||
"document": [tool_result],
|
||||
"metadata": [{"source": (f"TOOL:{tool_name}")}],
|
||||
"metadata": [{"source": (f"TOOL:{tool_name}"), "parameters": tool_function_params}],
|
||||
}
|
||||
)
|
||||
else:
|
||||
|
@ -117,6 +117,12 @@
|
||||
{/if}
|
||||
</div>
|
||||
</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}
|
||||
<div class="text-sm font-medium dark:text-gray-300 mt-2">
|
||||
{$i18n.t('Relevance')}
|
||||
|
Loading…
Reference in New Issue
Block a user