feat: Express + Whisper + 3 LLM + UI с микрофоном

This commit is contained in:
2026-06-01 22:06:28 +03:00
parent 098c697973
commit 1945f8868c
791 changed files with 84270 additions and 18 deletions
+21
View File
@@ -0,0 +1,21 @@
var concat = require('concat-stream')
function MemoryStorage (opts) {}
MemoryStorage.prototype._handleFile = function _handleFile (req, file, cb) {
file.stream.pipe(concat({ encoding: 'buffer' }, function (data) {
cb(null, {
buffer: data,
size: data.length
})
}))
}
MemoryStorage.prototype._removeFile = function _removeFile (req, file, cb) {
delete file.buffer
cb(null)
}
module.exports = function (opts) {
return new MemoryStorage(opts)
}