Support local config for reverse proxy

This commit is contained in:
Adam Boeglin 2023-04-03 09:29:52 -07:00 committed by GitHub
parent cd7e3f3774
commit 584772b3f2

View file

@ -4,7 +4,7 @@ const set = new Set(["gpt-4", "text-davinci-002-render", "text-davinci-002-rende
const clientOptions = {
// Warning: This will expose your access token to a third party. Consider the risks before using this.
reverseProxyUrl: 'https://bypass.churchless.tech/api/conversation',
reverseProxyUrl: process.env.CHATGPT_REVERSE_PROXY || 'https://bypass.churchless.tech/api/conversation',
// Access token from https://chat.openai.com/api/auth/session
accessToken: process.env.CHATGPT_TOKEN,
// debug: true