Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc2b25a8

Browse files
committed
chore: default API_REVERSE_PROXY
1 parent553e239 commitc2b25a8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

‎service/.env.example‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ OPENAI_API_DISABLE_DEBUG=
1616
# Reverse Proxy - Available on accessToken
1717
# Default: https://bypass.churchless.tech/api/conversation
1818
# More: https://github.com/transitive-bullshit/chatgpt-api#reverse-proxy
19-
API_REVERSE_PROXY=https://bypass.churchless.tech/api/conversation
19+
API_REVERSE_PROXY=
2020

2121
# timeout
2222
TIMEOUT_MS=100000

‎service/src/chatgpt/index.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,13 @@ let api: ChatGPTAPI | ChatGPTUnofficialProxyAPI
7575
accessToken:process.env.OPENAI_ACCESS_TOKEN,
7676
debug:!disableDebug,
7777
}
78+
7879
if(isNotEmptyString(OPENAI_API_MODEL))
7980
options.model=OPENAI_API_MODEL
8081

81-
if(isNotEmptyString(process.env.API_REVERSE_PROXY))
82-
options.apiReverseProxyUrl=process.env.API_REVERSE_PROXY
82+
options.apiReverseProxyUrl=isNotEmptyString(process.env.API_REVERSE_PROXY)
83+
?process.env.API_REVERSE_PROXY
84+
:'https://bypass.churchless.tech/api/conversation'
8385

8486
setupProxy(options)
8587

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp