Skip to content

Commit

Permalink
Format comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraggle committed Nov 29, 2024
1 parent c48476d commit d0da375
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
13 changes: 13 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

}
7 changes: 3 additions & 4 deletions front/lib/resources/content_fragment_resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
};
}
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit d0da375

Please sign in to comment.