I'm going crazy.
Steps to repro
make a file test.json:
Upload it as attachment then run
select * from 'test.json'
Diagnosis
The problem is that chat is null in
|
const files = chat.files(); |
i'm also seeing
ChatCraftFile.ts:69
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'digest')
at ChatCraftFile.calculateHash (ChatCraftFile.ts:69:44)
at async ChatCraftFile.findOrCreate (ChatCraftFile.ts:113:16)
at async use-file-import.tsx:206:29
when attaching files.
Weirdly I can't go back to this working.
I'm going crazy.
Steps to repro
make a file test.json:
{"hello":"world"}Upload it as attachment then run
Diagnosis
The problem is that chat is null in
chatcraft.org/src/lib/duckdb-chatcraft.ts
Line 113 in c06cf6f
i'm also seeing
when attaching files.
Weirdly I can't go back to this working.