Updated API endpoints

This commit is contained in:
sysadmin08 2023-10-16 17:56:50 +02:00 committed by GitHub
parent aa89428ec0
commit b5d8e5b676
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
export const officialAPIEndpoint = 'https://api.nova-oss.com/v1/chat/completions';
const customAPIEndpoint =
import.meta.env.VITE_CUSTOM_API_ENDPOINT || 'https://free.churchless.tech/v1/chat/completions/';
import.meta.env.VITE_CUSTOM_API_ENDPOINT || 'https://api.openai.com/v1/chat/completions';
export const defaultAPIEndpoint =
import.meta.env.VITE_DEFAULT_API_ENDPOINT || officialAPIEndpoint;
export const availableEndpoints = [officialAPIEndpoint, customAPIEndpoint];
export const availableEndpoints = [officialAPIEndpoint, customAPIEndpoint, 'https://api.naga.ac/v1/chat/completions'];