mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Fix AI endpoint
This commit is contained in:
@@ -24,5 +24,8 @@ module.exports = {
|
||||
browser: true,
|
||||
es2017: true,
|
||||
node: true
|
||||
},
|
||||
globals: {
|
||||
globalThis: false // false means it is not writeable
|
||||
}
|
||||
};
|
||||
|
||||
@@ -10,8 +10,10 @@
|
||||
import CoolerAppwrite from '$lib/images/appwrite-cooler.svg';
|
||||
import { VARS } from '$lib/system';
|
||||
|
||||
const endpoint = VARS.APPWRITE_ENDPOINT ?? `${globalThis?.location?.origin}/v1`;
|
||||
|
||||
const { input, handleSubmit, completion, isLoading, complete } = useCompletion({
|
||||
api: VARS.APPWRITE_ENDPOINT + '/console/assistant'
|
||||
api: endpoint + '/console/assistant'
|
||||
});
|
||||
|
||||
const examples = [
|
||||
|
||||
Reference in New Issue
Block a user