Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge main to develop/ChatGSE-Next #8

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
168 commits
Select commit Hold shift + click to select a range
6a61fe5
Update chat.tsx
Algorithm5838 Sep 26, 2023
398e229
Update chat.tsx
Algorithm5838 Sep 26, 2023
144200e
Merge pull request #2912 from Algorithm5838/Algorithm5838-patch-1
Yidadaa Sep 27, 2023
3bfcdf9
[ADDED] MacOS detect
lifeeric Sep 28, 2023
f3d5fc7
[FIXED] now the default key should be CMD on MacOS
lifeeric Sep 28, 2023
f1ca03e
[FIXED] now it should detects all macintosh
lifeeric Sep 28, 2023
4a599e9
UI Page [Auth Page]
H0llyW00dzZ Sep 30, 2023
bc00be9
Feat & Fix UI Page [Auth Page]
H0llyW00dzZ Sep 30, 2023
31e3090
Refactor Locale Indonesia
H0llyW00dzZ Sep 30, 2023
04b638a
Fix & Refactor UI Page [Auth Page]
H0llyW00dzZ Sep 30, 2023
64a17ab
Client App [Notification]
H0llyW00dzZ Oct 3, 2023
d2ad01a
Client App Fix Issue [Bug] 'export' button does not work #2884
H0llyW00dzZ Oct 3, 2023
ddfd05b
Fix & Feat Client App [Notification]
H0llyW00dzZ Oct 3, 2023
b558d1a
Feat & Fix "Client App [Notification]"
H0llyW00dzZ Oct 3, 2023
ad5093c
Change log
hongji7 Oct 4, 2023
1505372
Change log
hongji7 Oct 4, 2023
ef3e8e6
Merge pull request #2933 from H0llyW00dzZ/authpage
Yidadaa Oct 7, 2023
88f8c43
Improve tw locale
PeterDaveHello Oct 3, 2023
5a2cc6f
Merge pull request #2927 from lifeeric/MACOS
Yidadaa Oct 7, 2023
e35c807
Update tauri.conf.json
Yidadaa Oct 7, 2023
13c1d2f
Merge pull request #2946 from H0llyW00dzZ/ClientApp
Yidadaa Oct 7, 2023
4c8d606
Merge pull request #2950 from PeterDaveHello/locale-tw
Yidadaa Oct 7, 2023
5933b3d
Merge branch 'main' of https://github.com/Yidadaa/ChatGPT-Next-Web
actions-user Oct 8, 2023
bdb49b1
修改界面
luckykong Oct 9, 2023
3e2c5af
Merge pull request #2975 from luckykong/patch-1
Yidadaa Oct 9, 2023
fd413c7
Merge pull request #2947 from KeithHello/main
Yidadaa Oct 9, 2023
f21f922
Update tauri.conf.json
Yidadaa Oct 9, 2023
f54db69
fix: #2981 full screen button not works
Yidadaa Oct 10, 2023
f78008c
Merge pull request #2983 from Yidadaa/Yidadaa-patch-1
Yidadaa Oct 10, 2023
ea59ab5
Fix type in sync.ts
ograycode Oct 10, 2023
adee435
Merge pull request #2992 from ograycode/patch-1
Yidadaa Oct 10, 2023
74fcaab
Refactor Mask UI Page [Masks]
H0llyW00dzZ Oct 10, 2023
1604ed9
Merge branch 'Yidadaa:main' into masks
Oct 11, 2023
ba67f13
Merge pull request #2993 from H0llyW00dzZ/masks
Yidadaa Oct 11, 2023
ec33281
提供同步聊天记录教程,同时翻译多国语言
MCheping8108 Oct 11, 2023
1e77df3
Update constant.ts
Yidadaa Oct 12, 2023
b5d3348
已拆分单个文件、翻译多国语言版本
MCheping8108 Oct 12, 2023
5296ab1
Merge pull request #2996 from MCheping8108/main
Yidadaa Oct 12, 2023
986d34f
docs: fix typo in app/masks/en.ts
suravshrestha Oct 12, 2023
06e043d
Merge pull request #3003 from suravshrestha/patch1
Yidadaa Oct 12, 2023
0dcbfd7
fix serviceWorker cache
jessemoe Oct 13, 2023
f5a2ce5
Fix typo in README.md
eltociear Oct 14, 2023
55bcf78
Update README.md
Yidadaa Oct 15, 2023
65c4a0c
feat: close #3031 user can set larger font size
Yidadaa Oct 16, 2023
d11d906
Merge pull request #3033 from Yidadaa/Yidadaa-patch-1
Yidadaa Oct 16, 2023
4a56e9c
Merge pull request #3019 from eltociear/patch-2
Yidadaa Oct 16, 2023
cc565cf
Merge pull request #3013 from jessegpt/main
Yidadaa Oct 16, 2023
f92fefb
Update synchronise-chat-logs-cn.md
Yidadaa Oct 23, 2023
ccac85b
Update README_CN.md
Yidadaa Oct 23, 2023
e8a4ad1
Update README_KO.md
Yidadaa Oct 23, 2023
d1c3d90
Update README_KO.md
Yidadaa Oct 23, 2023
70e67a6
Revert "fix serviceWorker cache: auto caching files by workbox"
Yidadaa Oct 25, 2023
b90dfb4
Merge pull request #3095 from Yidadaa/revert-3013-main
Yidadaa Oct 26, 2023
8349455
merge upstream/main to main (#6)
fengsh27 Oct 30, 2023
bb4e7c9
Merge branch 'main' of https://github.com/fengsh27/ChatGPT-Next-Web
Oct 30, 2023
cd1f082
Feat Models [GPT-4] [GPT-3.5] [128K context]
H0llyW00dzZ Nov 6, 2023
9f26c8c
Fix Typo [GPT-4]
H0llyW00dzZ Nov 6, 2023
d2d615c
Refactor KnowledgeCutoff
H0llyW00dzZ Nov 6, 2023
1096fe5
Merge pull request #3143 from H0llyW00dzZ/newmodels
Yidadaa Nov 7, 2023
6e52d14
fix: #3016 disable sidebar transition on ios
Yidadaa Nov 7, 2023
836bf83
fix: #3152 system prompt should be injected
Yidadaa Nov 7, 2023
3407b57
Merge pull request #3163 from Yidadaa/bugfix-1107
Yidadaa Nov 7, 2023
638fdd8
feat: default disable balance query
Yidadaa Nov 7, 2023
c5ca278
feat: close #2908 allow to disable parse settings from link
Yidadaa Nov 7, 2023
c7321fd
fixup
Yidadaa Nov 7, 2023
8af164c
Merge pull request #3165 from Yidadaa/bugfix-1107
Yidadaa Nov 7, 2023
54a5332
feat: sort model by name
Yidadaa Nov 7, 2023
dbee5bc
Update tauri.conf.json
Yidadaa Nov 7, 2023
77f27b7
Merge pull request #3166 from Yidadaa/bugfix-1107
Yidadaa Nov 7, 2023
9cb889c
docs: up to date
AnYiEE Nov 7, 2023
d1ec26a
Merge pull request #3171 from AnYiEE/docs-update
Yidadaa Nov 8, 2023
3a51961
docs: fix typo in #3171
AnYiEE Nov 8, 2023
6ab4c9b
Update cloudflare-pages-cn.md
hekbobo Nov 8, 2023
deca9bf
Merge pull request #3183 from hekbobo/patch-1
Yidadaa Nov 8, 2023
4715477
Merge pull request #3181 from AnYiEE/docs-typo
Yidadaa Nov 8, 2023
8c0ba1a
feat: close #2954 chat summary should be copyable
Yidadaa Nov 8, 2023
1304a39
Merge pull request #3190 from Yidadaa/bugfix-1109
Yidadaa Nov 8, 2023
fbc0236
fix: #3174 should prompt to confirm to delete chat
Yidadaa Nov 8, 2023
3dc2919
Merge pull request #3191 from Yidadaa/bugfix-1109
Yidadaa Nov 8, 2023
d93f05f
feat: close #3187 use CUSTOM_MODELS to control model list
Yidadaa Nov 8, 2023
33b9708
Merge pull request #3192 from Yidadaa/bugfix-1109
Yidadaa Nov 8, 2023
d0a1d91
fix: #3186 enable max_tokens in chat payload
Yidadaa Nov 8, 2023
87e3d66
fix: #3192 use smaller max_tokens as default
Yidadaa Nov 9, 2023
3b3ebda
fix: #3196 3.5-turbo-1106 should use old cutoff date
Yidadaa Nov 9, 2023
fd2f441
feat: wont send max_tokens
Yidadaa Nov 9, 2023
b7ffca0
feat: close #935 add azure support
Yidadaa Nov 9, 2023
c9dd953
fixup
Yidadaa Nov 9, 2023
1141cd2
Merge pull request #3206 from Yidadaa/azure
Yidadaa Nov 9, 2023
c7e0a6f
doc: update azure env vars
Yidadaa Nov 9, 2023
8032e6d
Update README.md
Yidadaa Nov 9, 2023
e6b72ac
Update README.md
Yidadaa Nov 9, 2023
cb140e4
fix: #3207 ensure corner case
Yidadaa Nov 10, 2023
2bfb362
Update tauri.conf.json
Yidadaa Nov 10, 2023
6b2db97
fixbug
Ensteinjun Nov 10, 2023
78d68a9
Merge pull request #3214 from Ensteinjun/main
Yidadaa Nov 10, 2023
ca79266
Update constant.ts
Yidadaa Nov 10, 2023
943214c
Update README_CN.md
Yidadaa Nov 10, 2023
be97749
feat: #3224 auto switch to first avaliable model
Yidadaa Nov 11, 2023
8bd39f3
Merge pull request #3229 from Yidadaa/bugfix-1112
Yidadaa Nov 11, 2023
a5a1f2e
feat: CUSTOM_MODELS support mapper
Yidadaa Nov 11, 2023
64647b0
chore: update doc for mapped `CUSTOM_MODELS`
Yidadaa Nov 11, 2023
22b6987
Merge pull request #3230 from Yidadaa/bugfix-1112
Yidadaa Nov 11, 2023
be6d45e
feat: close #3222 share message list should start from clear context …
Yidadaa Nov 11, 2023
295864d
Merge pull request #3231 from Yidadaa/bugfix-1112
Yidadaa Nov 11, 2023
0f6ed9c
Feat UI/UX Page Local Language [Exporter Message]
H0llyW00dzZ Nov 11, 2023
a46f081
Fix UI/UX Page Local Language [Exporter Message]
H0llyW00dzZ Nov 11, 2023
5ba3fc9
Revert "Fix UI/UX Page Local Language [Exporter Message]"
H0llyW00dzZ Nov 11, 2023
3a654ba
UI (model selection): hide unavailable model options
nanaya-tachibana Nov 12, 2023
17b329b
Merge pull request #3232 from H0llyW00dzZ/language
Yidadaa Nov 12, 2023
b52e237
fix: #3189 should correct math eq in exporter
Yidadaa Nov 12, 2023
4f52679
Merge pull request #3236 from Yidadaa/latex
Yidadaa Nov 12, 2023
a0cd939
fix: #2841 dollar sign conflict with latex math
Yidadaa Nov 12, 2023
549a2fd
Merge pull request #3237 from Yidadaa/latex
Yidadaa Nov 12, 2023
fdca9e5
Merge pull request #3233 from nanaya-tachibana/nanaya/model-selection
Yidadaa Nov 13, 2023
d033168
fix: #3241 should not ensure openai url non-empty
Yidadaa Nov 13, 2023
011b52d
Update README.md
Yidadaa Nov 13, 2023
1e51531
chore(deps-dev): bump @types/node from 20.3.3 to 20.9.0
dependabot[bot] Nov 13, 2023
5fbf4c3
chore(deps-dev): bump @types/spark-md5 from 3.0.2 to 3.0.4
dependabot[bot] Nov 13, 2023
a64c9da
chore(deps): bump mermaid from 10.3.1 to 10.6.1
dependabot[bot] Nov 13, 2023
9f17b45
Merge pull request #3252 from Yidadaa/dependabot/npm_and_yarn/mermaid…
Yidadaa Nov 13, 2023
7d1fae3
chore(deps): bump emoji-picker-react from 4.5.1 to 4.5.15
dependabot[bot] Nov 13, 2023
a9d605e
chore(deps): bump nanoid from 4.0.2 to 5.0.3
dependabot[bot] Nov 13, 2023
5156a80
Merge pull request #3251 from Yidadaa/dependabot/npm_and_yarn/types/s…
Yidadaa Nov 13, 2023
5e73577
Merge pull request #3250 from Yidadaa/dependabot/npm_and_yarn/types/n…
Yidadaa Nov 13, 2023
2bd6342
Merge pull request #3249 from Yidadaa/dependabot/npm_and_yarn/emoji-p…
Yidadaa Nov 13, 2023
9da455a
Merge pull request #3248 from Yidadaa/dependabot/npm_and_yarn/nanoid-…
Yidadaa Nov 13, 2023
f1772f4
Fix UI/UX Page [Settings]
H0llyW00dzZ Nov 14, 2023
d898ffc
Merge pull request #3261 from H0llyW00dzZ/clients
Yidadaa Nov 14, 2023
9876a1a
fix: #3275 refuse on server side if hide user api key
Yidadaa Nov 15, 2023
74eb42c
config: exclude hkg1 from the deployment regions of the edge function
Eric-2369 Nov 16, 2023
600df4f
Merge pull request #3290 from Eric-2369/main
Yidadaa Nov 17, 2023
401fa19
Update tauri.conf.json
Yidadaa Nov 17, 2023
3c510cf
chore: update gh actions nodejs version to 18
Yidadaa Nov 17, 2023
7bdb68e
config: disable ip forward in vercel json config
Yidadaa Nov 17, 2023
914f4fb
Update vercel.json
Yidadaa Nov 17, 2023
cf220dd
Update vercel.json
Yidadaa Nov 17, 2023
6f135a0
Translation of the application into Brazilian Portuguese
yuri-filipe Nov 18, 2023
16b2a3e
Update vercel.json
Yidadaa Nov 18, 2023
536ace8
feat: animate streaming response to make more smooth
Yidadaa Nov 19, 2023
dc7159a
feat: close #3301 enable or diable default models with -all / +all
Yidadaa Nov 19, 2023
45b88eb
feat: close #3304 use `=` instead of `:` to map model name in CUSTOM_…
Yidadaa Nov 19, 2023
6aade62
feat: close #3300 support multiple api keys
Yidadaa Nov 19, 2023
2dde550
Merge pull request #3311 from Yidadaa/bugfix-1119
Yidadaa Nov 19, 2023
4f8a0b7
Merge pull request #3308 from yuri-filipe/main
Yidadaa Nov 19, 2023
f248593
feat: better animation speed
Yidadaa Nov 19, 2023
6527074
fix(locales): type error in pt.ts
AnYiEE Nov 23, 2023
261a8fd
fix(CUSTOM_MODELS):#3349 Dependency chatStore otherwise the session a…
durianice Nov 23, 2023
06de3f5
Update README.md
Yidadaa Nov 24, 2023
b21931c
Update README.md
Yidadaa Nov 24, 2023
ef9e86b
Fix UI/UX Page Chats [Memory Prompt] [Stored Local Storage]
H0llyW00dzZ Nov 24, 2023
f925887
Fix Api Common [Server Side] [Console Log]
H0llyW00dzZ Nov 25, 2023
f9d9169
Fixup Api Common [Server Side] [Console Log]
H0llyW00dzZ Nov 25, 2023
6f5699f
Chore Docs (README.md)
H0llyW00dzZ Nov 26, 2023
d76e744
Fix & Refactor UI/UX Page [Auth]
H0llyW00dzZ Nov 26, 2023
bf5e7aa
Feat UI/UX Page [Settings]
H0llyW00dzZ Nov 27, 2023
7df868e
Revert "Fix & Refactor UI/UX Page [Auth]"
H0llyW00dzZ Nov 27, 2023
dda40e2
Fix & Refactor UI/UX Page [Settings]
H0llyW00dzZ Nov 27, 2023
84f4126
Update README.md
Yidadaa Nov 27, 2023
bfb7b98
Merge pull request #3356 from durianice/pr_merge
Yidadaa Nov 27, 2023
a62ab3c
Merge pull request #3354 from AnYiEE/fix-type
Yidadaa Nov 27, 2023
ce1715c
Merge pull request #3369 from H0llyW00dzZ/chatz
Yidadaa Nov 27, 2023
03756e3
Merge pull request #3372 from H0llyW00dzZ/fixserverside
Yidadaa Nov 27, 2023
4636a75
Merge pull request #3382 from H0llyW00dzZ/docs
Yidadaa Nov 27, 2023
2c12be6
Merge pull request #3383 from H0llyW00dzZ/auth
Yidadaa Nov 27, 2023
cf50299
Update README_CN.md
Yidadaa Nov 29, 2023
92a5297
Merge remote-tracking branch 'upstream/main'
Dec 1, 2023
ae58c5a
Merge branch 'main' into wip/fengsh/develop/ChatGSE-Next/merge_main_t…
Dec 1, 2023
9d5df7c
update .env.template and docker-compose.yml
Dec 1, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 2 additions & 27 deletions .env.template
Original file line number Diff line number Diff line change
@@ -1,33 +1,8 @@

# Your openai api key. (required)
OPENAI_API_KEY=sk-xxxx

# Access passsword, separated by comma. (optional)
CODE=your-password

# You can start service behind a proxy
PROXY_URL=http://localhost:7890

# Override openai api request base url. (optional)
# Default: https://api.openai.com
# Examples: http://your-openai-proxy.com
BASE_URL=
# biochatter server url. (required)
BASE_URL= http://127.0.0.1:5000

# Specify OpenAI organization ID.(optional)
# Default: Empty
OPENAI_ORG_ID=

# (optional)
# Default: Empty
# If you do not want users to input their own API key, set this value to 1.
HIDE_USER_API_KEY=

# (optional)
# Default: Empty
# If you do not want users to use GPT-4, set this value to 1.
DISABLE_GPT4=

# (optional)
# Default: Empty
# If you do not want users to query balance, set this value to 1.
HIDE_BALANCE_QUERY=
4 changes: 2 additions & 2 deletions .github/workflows/app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
- name: get version
run: echo "PACKAGE_VERSION=$(node -p "require('./src-tauri/tauri.conf.json').package.version")" >> $GITHUB_ENV
- name: create release
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
Expand Down
51 changes: 43 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<h1 align="center">ChatGPT Next Web</h1>

English / [简体中文](./README_CN.md) / [日本語](./README_JA.md)
English / [简体中文](./README_CN.md)

One-Click to get well-designed cross-platform ChatGPT web UI.

Expand Down Expand Up @@ -62,6 +62,7 @@ One-Click to get well-designed cross-platform ChatGPT web UI.
- 🚀 v2.0 is released, now you can create prompt templates, turn your ideas into reality! Read this: [ChatGPT Prompt Engineering Tips: Zero, One and Few Shot Prompting](https://www.allabtai.com/prompt-engineering-tips-zero-one-and-few-shot-prompting/).
- 🚀 v2.7 let's share conversations as image, or share to ShareGPT!
- 🚀 v2.8 now we have a client that runs across all platforms!
- 🚀 v2.9.11 you can use azure endpoint now.

## 主要功能

Expand All @@ -74,7 +75,7 @@ One-Click to get well-designed cross-platform ChatGPT web UI.
- 预制角色功能(面具),方便地创建、分享和调试你的个性化对话
- 海量的内置 prompt 列表,来自[中文](https://github.com/PlexPt/awesome-chatgpt-prompts-zh)和[英文](https://github.com/f/awesome-chatgpt-prompts)
- 自动压缩上下文聊天记录,在节省 Token 的同时支持超长对话
- 多国语言支持:English, 简体中文, 繁体中文, 日本語, Español, Italiano, Türkçe, Deutsch, Tiếng Việt, Русский, Čeština
- 多国语言支持:English, 简体中文, 繁体中文, 日本語, Español, Italiano, Türkçe, Deutsch, Tiếng Việt, Русский, Čeština, 한국어, Indonesia
- 拥有自己的域名?好上加好,绑定后即可在任何地方**无障碍**快速访问

## 开发计划
Expand All @@ -93,6 +94,7 @@ One-Click to get well-designed cross-platform ChatGPT web UI.
- 💡 想要更方便地随时随地使用本项目?可以试下这款桌面插件:https://github.com/mushan0x0/AI0x0.com
- 🚀 v2.7 现在可以将会话分享为图片了,也可以分享到 ShareGPT 的在线链接。
- 🚀 v2.8 发布了横跨 Linux/Windows/MacOS 的体积极小的客户端。
- 🚀 v2.9.11 现在可以使用自定义 Azure 服务了。

## Get Started

Expand Down Expand Up @@ -153,14 +155,14 @@ After adding or modifying this environment variable, please redeploy the project

> [简体中文 > 如何配置 api key、访问密码、接口代理](./README_CN.md#环境变量)

### `OPENAI_API_KEY` (required)

Your openai api key.

### `CODE` (optional)

Access password, separated by comma.

### `OPENAI_API_KEY` (required)

Your openai api key, join multiple api keys with comma.

### `BASE_URL` (optional)

> Default: `https://api.openai.com`
Expand All @@ -173,6 +175,20 @@ Override openai api request base url.

Specify OpenAI organization ID.

### `AZURE_URL` (optional)

> Example: https://{azure-resource-url}/openai/deployments/{deploy-name}

Azure deploy url.

### `AZURE_API_KEY` (optional)

Azure Api Key.

### `AZURE_API_VERSION` (optional)

Azure Api Version, find it at [Azure Documentation](https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#chat-completions).

### `HIDE_USER_API_KEY` (optional)

> Default: Empty
Expand All @@ -185,11 +201,26 @@ If you do not want users to input their own API key, set this value to 1.

If you do not want users to use GPT-4, set this value to 1.

### `HIDE_BALANCE_QUERY` (optional)
### `ENABLE_BALANCE_QUERY` (optional)

> Default: Empty

If you do want users to query balance, set this value to 1, or you should set it to 0.

### `DISABLE_FAST_LINK` (optional)

> Default: Empty

If you do not want users to query balance, set this value to 1.
If you want to disable parse settings from url, set this to 1.

### `CUSTOM_MODELS` (optional)

> Default: Empty
> Example: `+llama,+claude-2,-gpt-3.5-turbo,gpt-4-1106-preview=gpt-4-turbo` means add `llama, claude-2` to model list, and remove `gpt-3.5-turbo` from list, and display `gpt-4-1106-preview` as `gpt-4-turbo`.

To control custom models, use `+` to add a custom model, use `-` to hide a model, use `name=displayName` to customize model name, separated by comma.

User `-all` to disable all default models, `+all` to enable all default models.

## Requirements

Expand Down Expand Up @@ -314,6 +345,10 @@ If you want to add a new translation, read this [document](./docs/translation.md
[@synwith](https://github.com/synwith)
[@piksonGit](https://github.com/piksonGit)
[@ouyangzhiping](https://github.com/ouyangzhiping)
[@wenjiavv](https://github.com/wenjiavv)
[@LeXwDeX](https://github.com/LeXwDeX)
[@Licoy](https://github.com/Licoy)
[@shangmin2009](https://github.com/shangmin2009)

### Contributor

Expand Down
34 changes: 30 additions & 4 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ code1,code2,code3

### `OPENAI_API_KEY` (必填项)

OpanAI 密钥,你在 openai 账户页面申请的 api key。
OpanAI 密钥,你在 openai 账户页面申请的 api key,使用英文逗号隔开多个 key,这样可以随机轮询这些 key

### `CODE` (可选)

Expand All @@ -90,6 +90,20 @@ OpenAI 接口代理 URL,如果你手动配置了 openai 接口代理,请填

指定 OpenAI 中的组织 ID。

### `AZURE_URL` (可选)

> 形如:https://{azure-resource-url}/openai/deployments/{deploy-name}

Azure 部署地址。

### `AZURE_API_KEY` (可选)

Azure 密钥。

### `AZURE_API_VERSION` (可选)

Azure Api 版本,你可以在这里找到:[Azure 文档](https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#chat-completions)。

### `HIDE_USER_API_KEY` (可选)

如果你不想让用户自行填入 API Key,将此环境变量设置为 1 即可。
Expand All @@ -98,9 +112,20 @@ OpenAI 接口代理 URL,如果你手动配置了 openai 接口代理,请填

如果你不想让用户使用 GPT-4,将此环境变量设置为 1 即可。

### `HIDE_BALANCE_QUERY` (可选)
### `ENABLE_BALANCE_QUERY` (可选)

如果你不想让用户查询余额,将此环境变量设置为 1 即可。
如果你想启用余额查询功能,将此环境变量设置为 1 即可。

### `DISABLE_FAST_LINK` (可选)

如果你想禁用从链接解析预制设置,将此环境变量设置为 1 即可。

### `CUSTOM_MODELS` (可选)

> 示例:`+qwen-7b-chat,+glm-6b,-gpt-3.5-turbo,gpt-4-1106-preview=gpt-4-turbo` 表示增加 `qwen-7b-chat` 和 `glm-6b` 到模型列表,而从列表中删除 `gpt-3.5-turbo`,并将 `gpt-4-1106-preview` 模型名字展示为 `gpt-4-turbo`。
> 如果你想先禁用所有模型,再启用指定模型,可以使用 `-all,+gpt-3.5-turbo`,则表示仅启用 `gpt-3.5-turbo`

用来控制模型列表,使用 `+` 增加一个模型,使用 `-` 来隐藏一个模型,使用 `模型名=展示名` 来自定义模型的展示名,用英文逗号隔开。

## 开发

Expand All @@ -114,7 +139,7 @@ OpenAI 接口代理 URL,如果你手动配置了 openai 接口代理,请填
OPENAI_API_KEY=<your api key here>

# 中国大陆用户,可以使用本项目自带的代理进行开发,你也可以自由选择其他代理地址
BASE_URL=https://nb.nextweb.fun/api/proxy
BASE_URL=https://b.nextweb.fun/api/proxy
```

### 本地开发
Expand Down Expand Up @@ -181,6 +206,7 @@ bash <(curl -s https://raw.githubusercontent.com/Yidadaa/ChatGPT-Next-Web/main/s
[见项目贡献者列表](https://github.com/Yidadaa/ChatGPT-Next-Web/graphs/contributors)

### 相关项目

- [one-api](https://github.com/songquanpeng/one-api): 一站式大模型额度管理平台,支持市面上所有主流大语言模型

## 开源协议
Expand Down
Loading