We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8862210 commit de2360aCopy full SHA for de2360a
1 file changed
src/lib/components/workspace/Knowledge/KnowledgeBase.svelte
@@ -297,7 +297,8 @@
297
);
298
299
const uploadedFile = await uploadFile(localStorage.token, file, {
300
- knowledge_id: knowledge.id
+ knowledge_id: knowledge.id,
301
+ directory_id: currentDirectoryId
302
}).catch((e) => {
303
toast.error(`${e}`);
304
return null;
@@ -376,6 +377,7 @@
376
377
try {
378
let metadata = {
379
knowledge_id: knowledge.id,
380
+ directory_id: currentDirectoryId,
381
// If the file is an audio file, provide the language for STT.
382
...((file.type.startsWith('audio/') || file.type.startsWith('video/')) &&
383
$settings?.audio?.stt?.language
0 commit comments