mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 10:20:15 +01:00
👨✈️ chore: Minor MCP-UI Logic Cleanup (#10950)
This commit is contained in:
parent
959e301f99
commit
5b0cce2e2a
5 changed files with 14 additions and 14 deletions
|
|
@ -141,8 +141,10 @@ export function formatToolContent(
|
|||
const resourceText: string[] = [];
|
||||
|
||||
if (isUiResource) {
|
||||
const resourceTextValue = 'text' in item.resource ? item.resource.text : undefined;
|
||||
const contentToHash = resourceTextValue || item.resource.uri || '';
|
||||
const contentToHash =
|
||||
'text' in item.resource && item.resource.text && typeof item.resource.text === 'string'
|
||||
? item.resource.text
|
||||
: item.resource.uri;
|
||||
const resourceId = generateResourceId(contentToHash);
|
||||
const uiResource: UIResource = {
|
||||
...item.resource,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue