From d0da375d156e3654b0f6339cef4df39ebb8ac1b1 Mon Sep 17 00:00:00 2001 From: Sebastien Flory Date: Fri, 29 Nov 2024 10:28:35 +0100 Subject: [PATCH] Format comment --- .vscode/settings.json | 13 +++++++++++++ front/lib/resources/content_fragment_resource.ts | 7 +++---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 68f2e34c5984..7032987cfe38 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -9,4 +9,17 @@ "eslint.run": "onSave", "typescript.preferences.importModuleSpecifier": "non-relative", "github-actions.workflows.pinned.workflows": [] + , + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true, + "[javascript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[typescript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[typescriptreact]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + } + } diff --git a/front/lib/resources/content_fragment_resource.ts b/front/lib/resources/content_fragment_resource.ts index a2856ed1f078..8ca4ed2f15ba 100644 --- a/front/lib/resources/content_fragment_resource.ts +++ b/front/lib/resources/content_fragment_resource.ts @@ -281,9 +281,7 @@ export function fileAttachmentLocation({ const filePath = `content_fragments/w/${workspaceId}/assistant/conversations/${conversationId}/content_fragment/${messageId}/${contentFormat}`; return { filePath, - internalUrl: `https://storage.googleapis.com/${ - getPrivateUploadBucket().name - }/${filePath}`, + internalUrl: `https://storage.googleapis.com/${getPrivateUploadBucket().name}/${filePath}`, downloadUrl: `${appConfig.getClientFacingUrl()}/api/w/${workspaceId}/assistant/conversations/${conversationId}/messages/${messageId}/raw_content_fragment?format=${contentFormat}`, }; } @@ -582,7 +580,8 @@ export async function renderContentFragmentForModel( contentType, excludeImages, fileId, - forceFullCSVInclude: message.snippet != null, // If there is a snippet, it means that JIT was used, therefor if we are rendering the content fragment: we want to include the full content. + // If there is a snippet, it means that JIT was used, therefor if we are rendering the content fragment: we want to include the full content. + forceFullCSVInclude: message.snippet != null, model, title, textBytes,