mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Add proper headers to AI API
This commit is contained in:
@@ -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