mirror of
https://github.com/simstudioai/sim.git
synced 2026-02-17 18:02:09 -05:00
feat(chat): support local file downloads/uploads for chat for parity with kb (#1751)
* feat(chat): support local file downloads/uploads for chat for parity with kb * cleanup imports * feat(files): add storage service and consolidate file utils * fix failing tests * cleanup * cleaned up * clean * add context for file uplaods/fetches * fixed blob * rm comments * fix failing test * fix profile pics * add workspace dedupe for duplicated files * update chat to accept only accepted types * add loading anim to profilepic update * optimistically update keys, copilot keys, and file uploads to prevent flash * add defensive check for deleting files
This commit is contained in:
@@ -14,6 +14,7 @@ export interface UserFile {
|
||||
key: string
|
||||
uploadedAt: string
|
||||
expiresAt: string
|
||||
context?: string
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { createLogger } from '@/lib/logs/console/logger'
|
||||
import { uploadExecutionFile } from '@/lib/workflows/execution-file-storage'
|
||||
import { uploadExecutionFile } from '@/lib/uploads/contexts/execution'
|
||||
import type { ExecutionContext, UserFile } from '@/executor/types'
|
||||
import type { ToolConfig, ToolFileData } from '@/tools/types'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user