mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-06 02:28:51 +01:00
chore: address copilot comments
This commit is contained in:
parent
649036903f
commit
62395f8dc1
5 changed files with 14 additions and 13 deletions
|
|
@ -141,7 +141,10 @@ export function formatToolContent(
|
|||
const resourceText: string[] = [];
|
||||
|
||||
if (isUiResource) {
|
||||
const contentToHash = item.resource.text || item.resource.uri || '';
|
||||
const contentToHash =
|
||||
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