mirror of
https://github.com/jackhh66/ChatGPT_Web_accessToken.git
synced 2026-12-03 21:49:39 +00:00
chore: default API_REVERSE_PROXY
This commit is contained in:
1 parent
553e239db3
commit
c2b25a84c7
2 files changed
+5
-3
No files matched your search
@@ -75,11 +75,13 @@ let api: ChatGPTAPI | ChatGPTUnofficialProxyAPI
|
||||
accessToken: process.env.OPENAI_ACCESS_TOKEN,
|
||||
debug: !disableDebug,
|
||||
}
|
||||
|
||||
if (isNotEmptyString(OPENAI_API_MODEL))
|
||||
options.model = OPENAI_API_MODEL
|
||||
|
||||
if (isNotEmptyString(process.env.API_REVERSE_PROXY))
|
||||
options.apiReverseProxyUrl = process.env.API_REVERSE_PROXY
|
||||
options.apiReverseProxyUrl = isNotEmptyString(process.env.API_REVERSE_PROXY)
|
||||
? process.env.API_REVERSE_PROXY
|
||||
: 'https://bypass.churchless.tech/api/conversation'
|
||||
|
||||
setupProxy(options)
|
||||
|
||||
|
||||
Reference in new issue
Block a user