mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-08-04 14:57:42 +00:00
sort s3 storage imports
This commit is contained in:
parent
e149f548fa
commit
624b708aed
1 changed files with 11 additions and 11 deletions
|
|
@ -1,5 +1,8 @@
|
|||
import fs from 'fs';
|
||||
import { Readable } from 'stream';
|
||||
import { logger } from '@librechat/data-schemas';
|
||||
import { FileSources } from 'librechat-data-provider';
|
||||
import { getSignedUrl } from '@aws-sdk/s3-request-presigner';
|
||||
import {
|
||||
UploadPartCommand,
|
||||
PutObjectCommand,
|
||||
|
|
@ -10,16 +13,12 @@ import {
|
|||
HeadObjectCommand,
|
||||
DeleteObjectCommand,
|
||||
} from '@aws-sdk/client-s3';
|
||||
import { logger } from '@librechat/data-schemas';
|
||||
import { FileSources } from 'librechat-data-provider';
|
||||
import { getSignedUrl } from '@aws-sdk/s3-request-presigner';
|
||||
import type {
|
||||
CompletedPart,
|
||||
GetObjectCommandInput,
|
||||
PutObjectCommandInput,
|
||||
} from '@aws-sdk/client-s3';
|
||||
import type { TFile } from 'librechat-data-provider';
|
||||
import type { ServerRequest } from '~/types';
|
||||
import type {
|
||||
UploadFileParams,
|
||||
SaveBufferParams,
|
||||
|
|
@ -32,13 +31,7 @@ import type {
|
|||
UrlBuilder,
|
||||
S3FileRef,
|
||||
} from '~/storage/types';
|
||||
import {
|
||||
assertS3FileName,
|
||||
assertPathSegment,
|
||||
sanitizeContentDispositionFilename,
|
||||
} from '~/storage/validation';
|
||||
import { initializeS3 } from '~/cdn/s3';
|
||||
import { deleteRagFile } from '~/files';
|
||||
import type { ServerRequest } from '~/types';
|
||||
import {
|
||||
assertRemoteFileURL,
|
||||
getRemoteFileFetchMaxBytes,
|
||||
|
|
@ -52,6 +45,13 @@ import {
|
|||
INLINE_AVATAR_PATH_PREFIX,
|
||||
INLINE_IMAGE_PATH_PREFIX,
|
||||
} from '~/storage/constants';
|
||||
import {
|
||||
assertS3FileName,
|
||||
assertPathSegment,
|
||||
sanitizeContentDispositionFilename,
|
||||
} from '~/storage/validation';
|
||||
import { initializeS3 } from '~/cdn/s3';
|
||||
import { deleteRagFile } from '~/files';
|
||||
import { s3Config } from './s3Config';
|
||||
|
||||
const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue