mirror of
https://github.com/simstudioai/sim.git
synced 2026-02-17 09:52:38 -05:00
feat(deployed-chat): added file upload to workflow execute API, added to deployed chat, updated chat panel (#1588)
* feat(deployed-chat): updated chat panel UI, deployed chat and API can now accept files * added nested tag dropdown for files * added duplicate file validation to chat panel * update docs & SDKs * fixed build * rm extraneous comments * ack PR comments, cut multiple DB roundtrips for permissions & api key checks in api/workflows * allow read-only users to access deployment info, but not take actions * add downloadable file to logs for files passed in via API * protect files/serve route that is only used client-side --------- Co-authored-by: waleed <waleed>
This commit is contained in:
@@ -9,7 +9,7 @@ const logger = createLogger('ResponseBlockHandler')
|
||||
interface JSONProperty {
|
||||
id: string
|
||||
name: string
|
||||
type: 'string' | 'number' | 'boolean' | 'object' | 'array'
|
||||
type: 'string' | 'number' | 'boolean' | 'object' | 'array' | 'files'
|
||||
value: any
|
||||
collapsed?: boolean
|
||||
}
|
||||
@@ -140,6 +140,9 @@ export class ResponseBlockHandler implements BlockHandler {
|
||||
return this.convertNumberValue(prop.value)
|
||||
case 'boolean':
|
||||
return this.convertBooleanValue(prop.value)
|
||||
case 'files':
|
||||
// File values should be passed through as-is (UserFile objects)
|
||||
return prop.value
|
||||
default:
|
||||
return prop.value
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user