Merge pull request #529 from appwrite/fix-ai-assistant

Fix: AI Assistant
This commit is contained in:
Torsten Dittmann authored and GitHub committed 2023-09-06 19:13:47 +02:00
commit 9922d24f3b
1 file changed
+4 -3
+4 -3
View File
@@ -15,9 +15,10 @@
const { input, handleSubmit, completion, isLoading, complete, error } = useCompletion({
api: endpoint + '/console/assistant',
headers: {
'x-appwrite-mode': 'admin',
'content-type': 'application/json'
}
'content-type': 'application/json',
'x-appwrite-project': 'console'
},
credentials: 'include'
});
let question = $input;