Skip to content

Commit 9922d24

Browse files
Merge pull request #529 from appwrite/fix-ai-assistant
Fix: AI Assistant
2 parents 4af144c + 0bca11d commit 9922d24

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/lib/commandCenter/panels/ai.svelte

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
const { input, handleSubmit, completion, isLoading, complete, error } = useCompletion({
1616
api: endpoint + '/console/assistant',
1717
headers: {
18-
'x-appwrite-mode': 'admin',
19-
'content-type': 'application/json'
20-
}
18+
'content-type': 'application/json',
19+
'x-appwrite-project': 'console'
20+
},
21+
credentials: 'include'
2122
});
2223
2324
let question = $input;

0 commit comments

Comments
 (0)