mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
Add proper headers to AI API
This commit is contained in:
1 parent
29590d66b9
commit
7bcac643e1
1 file changed
+4
-1
@@ -13,7 +13,10 @@
|
||||
const endpoint = VARS.APPWRITE_ENDPOINT ?? `${globalThis?.location?.origin}/v1`;
|
||||
|
||||
const { input, handleSubmit, completion, isLoading, complete } = useCompletion({
|
||||
api: endpoint + '/console/assistant'
|
||||
api: endpoint + '/console/assistant',
|
||||
headers: {
|
||||
'content-type': 'application/json'
|
||||
}
|
||||
});
|
||||
|
||||
const examples = [
|
||||
|
||||
Reference in new issue
Block a user