-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* vercel deploy support * clean code * Update readme
- Loading branch information
Showing
17 changed files
with
216 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
LOG_CHAT=True | ||
LOG_CHAT=False | ||
OPENAI_BASE_URL=https://api.openai.com | ||
OPENAI_API_KEY= | ||
FORWARD_KEY= | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# LOG_CHAT: 是否Log 对话记录 | ||
LOG_CHAT=True | ||
|
||
OPENAI_BASE_URL=https://api.openai.com | ||
|
||
# OPENAI_API_KEY:允许输入多个api key 形成轮询池 | ||
OPENAI_API_KEY=sk-xxx1 sk-xxx2 sk-xxx3 | ||
|
||
# FORWARD_KEY: 当前面的OPENAI_API_KEY被设置,就可以设置这里的FORWARD_KEY,客户端调用时可以使用FORWARD_KEY作为api key | ||
FORWARD_KEY=fk-xxx1 | ||
|
||
ROUTE_PREFIX=/openai | ||
|
||
IP_WHITELIST= | ||
IP_BLACKLIST= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
**/* | ||
!openai_forward | ||
!openai_forward/* | ||
!*.py | ||
|
||
!vercel.json | ||
!requirements.txt | ||
!.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.