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

Add Azure OpenAI API support. #935

Closed
wants to merge 35 commits into from

Conversation

realDuang
Copy link

@realDuang realDuang commented Apr 19, 2023

Azure OpenAI product details protal: https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/OpenAI

Effect snapshot:
image

A fork for quick preview
https://chatgpt.realduang.com/

Introduction to use:
If you want to use the Azure OpenAI API features, you will need to register your service in the portal above.

It requires passing in three mandatory parameters for normal use, custom domain, instance name, and api key. You can refer to the product documentation for these parameters.

It is worth noting that the custom subdomain value is the value that you will get from the detail list when you have registered with Azure OpenAI.
image

@realDuang
Copy link
Author

fixed the code conflict. Need to deploy.

@realDuang realDuang closed this May 9, 2023
@realDuang realDuang reopened this May 9, 2023
@xiaoyongzhu
Copy link

@Yidadaa 请问你有计划merge这个PR嘛?

@bob0627
Copy link

bob0627 commented May 19, 2023

这是已经支持了么? 怎么设置

@daidi
Copy link

daidi commented May 23, 2023

nice try

@realDuang
Copy link
Author

惊了,居然有这么多人也有相同的需求,那我修一版

@realDuang
Copy link
Author

realDuang commented May 24, 2023

@Yidadaa I have fixed all the code for conflict, and supplied a demonstration of the effects and brief instructions. If you think this feature is also needed, please review it.

Of course, if you got a chance, please help me to supply the feature description in README, thanks. I didn't find a suitable place to add this.

@realDuang realDuang changed the title Add Azure Openai instance API support. Add Azure OpenAI API support. May 24, 2023
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


The azure api is much slower, do you have this problem

If you mean that the first response of streaming is slow, it is because the azure api made a 1/s throttle in May, but the content generation speed should be the same

@realDuang
Copy link
Author

@daidi 如果你已经有azure资源了,在这个PR 被 merge 前,可以去我的 fork 先体验一波支持了 azure openai 的版本,传送门:https://chatgpt.realduang.com/
有好的改进建议也可以回来这里提。

我尝试部署了你fork出来的版本的确可以在设置里设置Azure OpenAI了,不过请问一下有木有方法可以在服务器层面上环境变量的方式配置AzureOpenAI的参数呢?类似OPENAI_API_KEY这样的?再次感谢你的工作。

这两天有空,顺手也加上了 Vercel 服务端支持。参考文档:https://github.com/realDuang/ChatGPT-Next-Web#readme

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


@daidi If you already have azure resources, before this PR is merged, you can go to my fork to experience a version that supports azure openai. Portal: https://chatgpt.realduang.com/
You can come back here if you have good suggestions for improvement.

I tried to deploy the version from your fork, and it is true that Azure OpenAI can be set in the settings, but is there a way to configure the parameters of AzureOpenAI in the form of environment variables at the server level? Something like OPENAI_API_KEY? Thanks again for your work.

These two days are free, and I also added Vercel server support. Reference document: https://github.com/realDuang/ChatGPT-Next-Web#readme

@2-3-5-7
Copy link

2-3-5-7 commented Jul 4, 2023

@realDuang 问个小白问题,一直没找到方法。我已经fork了Yidadaa/ChatGPT-Next-Web,但是我再fork realDuang/ChatGPT-Next-Web这个项目的时候提示项目已存在不能在fork了(No more forks can be created. These forks already exist),我不能同时fork这两个项目吗?而且我也改了项目的名称,还是这个提示

You cannot fork an original project twice. But you can still do the following steps on your local machine:
git remote add realDuang https://github.com/realDuang/ChatGPT-Next-Web.git git fetch realDuang git checkout -b duang/azure_openai realDuang/duang/azure_openai

但如果我本地拉取了项目就没法部署到vercel上了

  • 我是先 clone 到本地,然后 push 到我的 github repo 上,之后本地内容就可以删除了。
  • 在线编辑 .github/workflows/sync.yml这样,就可以每天定时从 realDuang/ChatGPT-Next-Web 更新了

@bob0627
Copy link

bob0627 commented Jul 4, 2023

这个pull都几个月了也没合并啊

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


This pull has not been merged for several months.

@2-3-5-7
Copy link

2-3-5-7 commented Jul 5, 2023

@realDuang 能否更新一下 apiversion 呢,现在不是 2023-03-15-preview 了,已经有 4 种值了 来源 ,或许可以改成可配置?

@realDuang
Copy link
Author

realDuang commented Jul 11, 2023

@realDuang 能否更新一下 apiversion 呢,现在不是 2023-03-15-preview 了,已经有 4 种值了 来源 ,或许可以改成可配置?

@2-3-5-7
Yep, i had upgraded the version to 2023-05-15 at my main branch before.

As for configurability, seems there is no obvious difference between the various versions of azure models. In addition, configuration items on the server side will be added.

I will consider adding them in future when I have time.

@johnfelipe
Copy link
Contributor

Pls take a good discussion for add this feature
I'm already have azure chatgpt and is a good adding to this great chat web UI
Consider pls merge to master for review and test..

@Jackiexiao
Copy link

可否合并当前PR?

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Can the current PR be merged?

@TianqiZhang
Copy link

@Yidadaa do you have plan to merge this PR? This is really a very desired feature, many people will really love to have this.

Yidadaa added a commit that referenced this pull request Nov 9, 2023
@Yidadaa
Copy link
Collaborator

Yidadaa commented Nov 9, 2023

#3206

@Yidadaa Yidadaa closed this Nov 9, 2023
DirkSchlossmacher added a commit to DirkSchlossmacher/ChatGPT-Next-Web-AdEx that referenced this pull request Nov 10, 2023
commit e6b72ac
Author: Yifei Zhang <yidadaa@qq.com>
Date:   Fri Nov 10 02:59:47 2023 +0800

    Update README.md

commit 8032e6d
Author: Yifei Zhang <yidadaa@qq.com>
Date:   Fri Nov 10 02:59:30 2023 +0800

    Update README.md

commit c7e0a6f
Author: Yidadaa <yidadaa@qq.com>
Date:   Fri Nov 10 02:57:40 2023 +0800

    doc: update azure env vars

commit 1141cd2
Merge: fd2f441 c9dd953
Author: Yifei Zhang <yidadaa@qq.com>
Date:   Fri Nov 10 02:55:12 2023 +0800

    Merge pull request ChatGPTNextWeb#3206 from Yidadaa/azure

commit c9dd953
Author: Yidadaa <yidadaa@qq.com>
Date:   Fri Nov 10 02:50:50 2023 +0800

    fixup

commit b7ffca0
Author: Yidadaa <yidadaa@qq.com>
Date:   Fri Nov 10 02:43:30 2023 +0800

    feat: close ChatGPTNextWeb#935 add azure support

commit fd2f441
Author: Yifei Zhang <yidadaa@qq.com>
Date:   Thu Nov 9 20:45:25 2023 +0800

    feat: wont send max_tokens
Endlessworld pushed a commit to Endlessworld/ChatGPT-Next-Web that referenced this pull request Nov 16, 2023
Endlessworld added a commit to Endlessworld/ChatGPT-Next-Web that referenced this pull request Nov 16, 2023
PeterZhang-2023 pushed a commit to PeterZhang-2023/ChatGPT-z that referenced this pull request Nov 26, 2023
PeterZhang-2023 added a commit to PeterZhang-2023/ChatGPT-z that referenced this pull request Nov 26, 2023
* chore(deps-dev): bump prettier from 2.8.8 to 3.0.2

Bumps [prettier](https://github.com/prettier/prettier) from 2.8.8 to 3.0.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](prettier/prettier@2.8.8...3.0.2)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* The mobile terminal ishitbottom does not perform -10

* docs: Add README_KO

* docs: Add cloudflare-pages-ko

* Add faq-ko

* docs: Add vercel-ko

* [Feature] Better JSON Exporter ChatGPTNextWeb#2692

[+] A view looks better
[+] auto minify json when click a copy in markdown and download

Co-Authored-By: wangwentong-lunaon <39506652+wangwentong-lunaon@users.noreply.github.com>
Co-Authored-By: Yifei Zhang <yidadaa@qq.com>
Co-Authored-By: B0zal <48602426+kfear1337@users.noreply.github.com>

* chore: ChatGPTNextWeb#2699 Update README.md

* fix: ChatGPTNextWeb#2699 remove double quotes in readme

* setup shell support for debian

* fix bug of ! near check of system.

* [+] Language indonesia (my country)

* Issue ChatGPTNextWeb#2702 should be fixed now kiw kiw

where the ChatGPTicon.src
glitches and breaks when exporting the image for the second time without refreshing the page.

* [+] FineTuned Sysmessage Depends for local language

this for JSON Exporter

* [+] Fixed language missing for finetuned

* Security Update

Potentially unsafe external link

* Security Update

[+] Protect Prototype

* This branch only for scanner

* Delete codeql.yml

it won't work if someone try, must have licence advance security

* feat: close ChatGPTNextWeb#2580 only use 3.5 to summarize when not using custom models

* feat: close ChatGPTNextWeb#2430 add a simple user maual

* Update README.md

* Update tauri.conf.json

* Revert "chore(deps): bump next from 13.4.9 to 13.4.19"

* feat: close ChatGPTNextWeb#2752 auto re-fill unfinished input

* fix cloudflare deployment instructions

* Update README_CN.md

* improve japanese translations

* feat: close ChatGPTNextWeb#2754 add import/export to file

* fixup: add en locales

* fixup: fix type errors

* fixup: minor sync fixup

* fixup

* [+] CodeQL Report Fix log injection vulnerability in useSyncStore

Severity : High
Sanitize the 'res' object before logging it in the 'check' method of useSyncStore to prevent log injection attacks.
The 'res' object is now sanitized by extracting only the necessary properties ('status', 'statusText', and 'headers') and logging the sanitized object instead.
This ensures that only safe and expected data is logged, mitigating the risk of log injection vulnerabilities.

* chore(deps): bump emoji-picker-react from 4.4.8 to 4.5.1

Bumps [emoji-picker-react](https://github.com/ealush/emoji-picker-react) from 4.4.8 to 4.5.1.
- [Release notes](https://github.com/ealush/emoji-picker-react/releases)
- [Commits](https://github.com/ealush/emoji-picker-react/commits)

---
updated-dependencies:
- dependency-name: emoji-picker-react
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps): bump react-router-dom from 6.14.1 to 6.15.0

Bumps [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom) from 6.14.1 to 6.15.0.
- [Release notes](https://github.com/remix-run/react-router/releases)
- [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router-dom/CHANGELOG.md)
- [Commits](https://github.com/remix-run/react-router/commits/react-router-dom@6.15.0/packages/react-router-dom)

---
updated-dependencies:
- dependency-name: react-router-dom
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps-dev): bump typescript from 4.9.5 to 5.2.2

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.9.5 to 5.2.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v4.9.5...v5.2.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps-dev): bump eslint from 8.44.0 to 8.49.0

Bumps [eslint](https://github.com/eslint/eslint) from 8.44.0 to 8.49.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](eslint/eslint@v8.44.0...v8.49.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* [+] Updated Auth Page

- Made changes to the Auth Page to reset the input field for the access code when the "Later" button is clicked.
This ensures that only expected user is logged by entering access code or entering their OpenAI API Key, mitigating the risk of small bug issue

* feat: add webdav support

* fixup

* fixup

* Update tauri.conf.json

* fix: Width changes abruptly when dragging the sidebar (jumps)

In useRef is non-responsive, we can't get the modified config.sidebarWidth dynamic modification value in handleMouseUp

* Refactor: sidebar drag

* fix: The width of the sidebar changes abruptly by dragging it multiple times over and over again (bouncing)

* [+] Some improvements to the Indonesian language.

* [+] Some improvements to the Indonesian language.

* Changes "Nama" -> "User"

* Update markdown.tsx

* Update route.ts

Correct typo error and make warning more specific.

* Update .env.template

* Encode google font url

* feat: close ChatGPTNextWeb#2848 click drag icon to toggle sidebar width

* fix: ChatGPTNextWeb#2817 min-height for landscape orientation on mobile phone

* fix: ChatGPTNextWeb#2820 try to fix 520 error code

* fixup

* feat: add upstash redis cloud sync

* feat: auto fill upstash backup name

* Update constant.ts

* Update tauri.conf.json

* Update README_CN.md

* fix: should not tight border in desktop app

* Update chat.tsx

* feat: support more http status check for webdav

* UI Page [sidebar]

[+] fix(sidebar.tsx): update onClick function to conditionally navigate to different paths based on config.dontShowMaskSplashScreen value

Ref : [Feature] Make the mask selection more streamlined Yidadaa#2895

* Update chat.tsx

* Update chat.tsx

* [ADDED] MacOS detect

* [FIXED] now the default key should be CMD on MacOS

* [FIXED] now it should detects all macintosh

* UI Page [Auth Page]

[+] feat(auth.tsx): add support for resetting access token in resetAccessCode function
[+] fix(auth.tsx): fix formatting issue in resetAccessCode function
[+] feat(locales): add support for sub tips in Auth component for multiple languages :
  - Add sub tips in Arabic locale (ar.ts)
  - Add sub tips in Bengali locale (bn.ts)
  - Add sub tips in Chinese locale (cn.ts)
  - Add sub tips in English locale (en.ts)
  - Add sub tips in Indonesian locale (id.ts)

* Feat & Fix UI Page [Auth Page]

[+] feat(auth.tsx): add goChat function to navigate to chat page
[+] fix(auth.tsx): change onClick event from goHome to goChat

* Refactor Locale Indonesia

[+] refactor(id.ts): remove unused import and isApp variable
[+] fix(id.ts): update Unauthorized error message

* Fix & Refactor UI Page [Auth Page]

[+] fix(auth.tsx): fix conditional rendering of token input field
[+] refactor(auth.tsx): improve code readability by using conditional rendering for token input field

* Client App [Notification]

[+] feat(global.d.ts): add support for window.__TAURI__.notification methods
[+] feat(update.ts): add notification for new version availability
[+] fix(Cargo.toml): add tauri feature "notification-all" to enable notifications
[+] fix(tauri.conf.json): enable all notification features in tauri configuration

* Client App Fix Issue [Bug] 'export' button does not work ChatGPTNextWeb#2884

[+] fix(exporter.tsx): add async keyword to download function
[+] feat(exporter.tsx): add support for saving image file using window.__TAURI__ API
[+] feat(global.d.ts): add types for window.__TAURI__ API methods
[+] feat(locales): add translations for download success and failure messages
[+] feat(sync.ts): add support for generating backup file name with date and time
[+] fix(utils.ts): add async keyword to downloadAs function and add support for saving file using window.__TAURI__ API

* Fix & Feat Client App [Notification]

[+] fix(update.ts): remove unnecessary notification sending when permission is not granted
[+] feat(update.ts): add notification for already up to date version

* Feat & Fix "Client App [Notification]"

[+] feat(update.ts): add support for localization in update notifications
[+] fix(update.ts): add missing semicolon in useUpdateStore function

* Change log

-   config.ts
    -   line 72 remove type confirmation of x as x always has type 'number'
    -   line 135 remove redundant local variable
-   chat.ts
    -   delete unused import

* Change log

-   config.ts
    -   line 72: remove type confirmation of x as x always has type 'number'
    -   line 135: remove the redundant local variable
-   chat.ts
    -   delete the unused import

* Improve tw locale

* Update tauri.conf.json

* 修改界面

似乎这里引入了一个逻辑判断错误,会导致打包之后的界面变宽变高。

* Update tauri.conf.json

* fix: ChatGPTNextWeb#2981 full screen button not works

* Fix type in sync.ts

Simple typo fix.

* Refactor Mask UI Page [Masks]

[+] refactor(mask.tsx): refactor simple search to be case-insensitive

* 提供同步聊天记录教程,同时翻译多国语言

* Update constant.ts

* 已拆分单个文件、翻译多国语言版本

* docs: fix typo in app/masks/en.ts

* fix serviceWorker cache

* Fix typo in README.md

passsword -> password

* Update README.md

* feat: close ChatGPTNextWeb#3031 user can set larger font size

* Update synchronise-chat-logs-cn.md

* Update README_CN.md

* Update README_KO.md

* Update README_KO.md

* Revert "fix serviceWorker cache: auto caching files by workbox"

* Feat Models [GPT-4] [GPT-3.5] [128K context]

[+] feat(constant.ts): add new models to DEFAULT_MODELS array

* Fix Typo [GPT-4]

[+] fix(constant.ts): fix typo in model name, change "ggpt-4-1106-preview" to "gpt-4-1106-preview"

* Refactor KnowledgeCutoff

[+] fix(constant.ts): update DEFAULT_SYSTEM_TEMPLATE to include knowledgeCutoff and time variables
[+] feat(chat.ts): add support for injecting system prompts based on model configuration

* fix: ChatGPTNextWeb#3016 disable sidebar transition on ios

* fix: ChatGPTNextWeb#3152 system prompt should be injected

* feat: default disable balance query

* feat: close ChatGPTNextWeb#2908 allow to disable parse settings from link

* fixup

* feat: sort model by name

* Update tauri.conf.json

* docs: up to date

* docs: fix typo in ChatGPTNextWeb#3171

* Update cloudflare-pages-cn.md

cloudflare 构建命令

* feat: close ChatGPTNextWeb#2954 chat summary should be copyable

* fix: ChatGPTNextWeb#3174 should prompt to confirm to delete chat

* feat: close ChatGPTNextWeb#3187 use CUSTOM_MODELS to control model list

* fix: ChatGPTNextWeb#3186 enable max_tokens in chat payload

* fix: ChatGPTNextWeb#3192 use smaller max_tokens as default

* fix: ChatGPTNextWeb#3196 3.5-turbo-1106 should use old cutoff date

* feat: wont send max_tokens

* feat: close ChatGPTNextWeb#935 add azure support

* fixup

* doc: update azure env vars

* Update README.md

* Update README.md

* fix: ChatGPTNextWeb#3207 ensure corner case

* Update tauri.conf.json

* fixbug

* Update constant.ts

* Update README_CN.md

* feat: ChatGPTNextWeb#3224 auto switch to first avaliable model

* feat: CUSTOM_MODELS support mapper

* chore: update doc for mapped `CUSTOM_MODELS`

* feat: close ChatGPTNextWeb#3222 share message list should start from clear context index

* Feat UI/UX Page Local Language [Exporter Message]

[+] fix(exporter.tsx): update the text in the ExportMessageModal component to use the localized title from the locale file
[+] feat(cn.ts, en.ts, id.ts): add localized title for the Exporter Description in the respective locale files

* Fix UI/UX Page Local Language [Exporter Message]

fix(locales): fix incorrect description title in en.ts and id.ts
 - Change "Only messages after clearing the context will be displayed" to "Only messages before clearing the context will be displayed" in en.ts
 - Change "Hanya pesan setelah menghapus konteks yang akan ditampilkan" to "Hanya pesan sebelum menghapus konteks yang akan ditampilkan" in id.ts

* Revert "Fix UI/UX Page Local Language [Exporter Message]"

This reverts commit a46f081.
Reason : better after instead of before

* UI (model selection): hide unavailable model options

* fix: ChatGPTNextWeb#3189 should correct math eq in exporter

* fix: ChatGPTNextWeb#2841 dollar sign conflict with latex math

* fix: ChatGPTNextWeb#3241 should not ensure openai url non-empty

* Update README.md

* chore(deps-dev): bump @types/node from 20.3.3 to 20.9.0

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.3.3 to 20.9.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps-dev): bump @types/spark-md5 from 3.0.2 to 3.0.4

Bumps [@types/spark-md5](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/spark-md5) from 3.0.2 to 3.0.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/spark-md5)

---
updated-dependencies:
- dependency-name: "@types/spark-md5"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps): bump mermaid from 10.3.1 to 10.6.1

Bumps [mermaid](https://github.com/mermaid-js/mermaid) from 10.3.1 to 10.6.1.
- [Release notes](https://github.com/mermaid-js/mermaid/releases)
- [Changelog](https://github.com/mermaid-js/mermaid/blob/develop/CHANGELOG.md)
- [Commits](mermaid-js/mermaid@v10.3.1...v10.6.1)

---
updated-dependencies:
- dependency-name: mermaid
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps): bump emoji-picker-react from 4.5.1 to 4.5.15

Bumps [emoji-picker-react](https://github.com/ealush/emoji-picker-react) from 4.5.1 to 4.5.15.
- [Release notes](https://github.com/ealush/emoji-picker-react/releases)
- [Commits](https://github.com/ealush/emoji-picker-react/commits)

---
updated-dependencies:
- dependency-name: emoji-picker-react
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps): bump nanoid from 4.0.2 to 5.0.3

Bumps [nanoid](https://github.com/ai/nanoid) from 4.0.2 to 5.0.3.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](ai/nanoid@4.0.2...5.0.3)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix UI/UX Page [Settings]

[+] fix(settings.tsx): fix condition to show balance query in settings component
[+] fix(settings.tsx): add condition to hide balance query for app clients

* fix: ChatGPTNextWeb#3275 refuse on server side if hide user api key

* config: exclude hkg1 from the deployment regions of the edge function

* Update tauri.conf.json

* chore: update gh actions nodejs version to 18

* config: disable ip forward in vercel json config

* Update vercel.json

* Update vercel.json

* Translation of the application into Brazilian Portuguese

* Update vercel.json

* feat: animate streaming response to make more smooth

* feat: close ChatGPTNextWeb#3301 enable or diable default models with -all / +all

* feat: close ChatGPTNextWeb#3304 use `=` instead of `:` to map model name in CUSTOM_MODELS

* feat: close ChatGPTNextWeb#3300 support multiple api keys

* feat: better animation speed

* Update README.md

* Update README.md

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yifei Zhang <yidadaa@qq.com>
Co-authored-by: reece00 <37351410+reece00@users.noreply.github.com>
Co-authored-by: pengoosedev <73521518+pengoosedev@users.noreply.github.com>
Co-authored-by: B0zal <me@btz.pm>
Co-authored-by: wangwentong-lunaon <39506652+wangwentong-lunaon@users.noreply.github.com>
Co-authored-by: B0zal <48602426+kfear1337@users.noreply.github.com>
Co-authored-by: huni <huhuhuni@yeah.net>
Co-authored-by: Ricky Robinett <richard.robinett@gmail.com>
Co-authored-by: shoito <37051+shoito@users.noreply.github.com>
Co-authored-by: yhua1998 <101091026+yhua1998@users.noreply.github.com>
Co-authored-by: yhua1998 <385362330@qq.com>
Co-authored-by: H0llyW00dzZ <priv8@btz.pm>
Co-authored-by: Algorithm5838 <108630393+Algorithm5838@users.noreply.github.com>
Co-authored-by: Amor Zara <132665015+a6z6@users.noreply.github.com>
Co-authored-by: Gerhard Tan <gwohau.tan@gmail.com>
Co-authored-by: Eric R <hi@ericgit.me>
Co-authored-by: KeithHello <hongji.li@act1.co.jp>
Co-authored-by: Peter Dave Hello <hsu@peterdavehello.org>
Co-authored-by: GH Action - Upstream Sync <action@github.com>
Co-authored-by: Kong Gaowen <luckykong@users.noreply.github.com>
Co-authored-by: Jason O'Gray <1228915+ograycode@users.noreply.github.com>
Co-authored-by: H0llyW00dzZ <scure.apple@gmail.com>
Co-authored-by: mcheping520 <liuyiming53@outlook.com>
Co-authored-by: Surav Shrestha <surav.shrestha@outlook.com>
Co-authored-by: Jesse <43443357+jessegpt@users.noreply.github.com>
Co-authored-by: Ikko Eltociear Ashimine <eltociear@gmail.com>
Co-authored-by: 安忆 <i@anyi.in>
Co-authored-by: bob <hekbobo@gmail.com>
Co-authored-by: Ensteinjun <luoming_jun@126.com>
Co-authored-by: nanaya <nanaya100@gmail.com>
Co-authored-by: Eric-2369 <admin@eri.cx>
Co-authored-by: Yuri Filipe <yurifelipe64@hotmail.com>
fengsh27 added a commit to fengsh27/ChatGPT-Next-Web that referenced this pull request Dec 1, 2023
* Update chat.tsx

* Update chat.tsx

* [ADDED] MacOS detect

* [FIXED] now the default key should be CMD on MacOS

* [FIXED] now it should detects all macintosh

* UI Page [Auth Page]

[+] feat(auth.tsx): add support for resetting access token in resetAccessCode function
[+] fix(auth.tsx): fix formatting issue in resetAccessCode function
[+] feat(locales): add support for sub tips in Auth component for multiple languages :
  - Add sub tips in Arabic locale (ar.ts)
  - Add sub tips in Bengali locale (bn.ts)
  - Add sub tips in Chinese locale (cn.ts)
  - Add sub tips in English locale (en.ts)
  - Add sub tips in Indonesian locale (id.ts)

* Feat & Fix UI Page [Auth Page]

[+] feat(auth.tsx): add goChat function to navigate to chat page
[+] fix(auth.tsx): change onClick event from goHome to goChat

* Refactor Locale Indonesia

[+] refactor(id.ts): remove unused import and isApp variable
[+] fix(id.ts): update Unauthorized error message

* Fix & Refactor UI Page [Auth Page]

[+] fix(auth.tsx): fix conditional rendering of token input field
[+] refactor(auth.tsx): improve code readability by using conditional rendering for token input field

* Client App [Notification]

[+] feat(global.d.ts): add support for window.__TAURI__.notification methods
[+] feat(update.ts): add notification for new version availability
[+] fix(Cargo.toml): add tauri feature "notification-all" to enable notifications
[+] fix(tauri.conf.json): enable all notification features in tauri configuration

* Client App Fix Issue [Bug] 'export' button does not work ChatGPTNextWeb#2884

[+] fix(exporter.tsx): add async keyword to download function
[+] feat(exporter.tsx): add support for saving image file using window.__TAURI__ API
[+] feat(global.d.ts): add types for window.__TAURI__ API methods
[+] feat(locales): add translations for download success and failure messages
[+] feat(sync.ts): add support for generating backup file name with date and time
[+] fix(utils.ts): add async keyword to downloadAs function and add support for saving file using window.__TAURI__ API

* Fix & Feat Client App [Notification]

[+] fix(update.ts): remove unnecessary notification sending when permission is not granted
[+] feat(update.ts): add notification for already up to date version

* Feat & Fix "Client App [Notification]"

[+] feat(update.ts): add support for localization in update notifications
[+] fix(update.ts): add missing semicolon in useUpdateStore function

* Change log

-   config.ts
    -   line 72 remove type confirmation of x as x always has type 'number'
    -   line 135 remove redundant local variable
-   chat.ts
    -   delete unused import

* Change log

-   config.ts
    -   line 72: remove type confirmation of x as x always has type 'number'
    -   line 135: remove the redundant local variable
-   chat.ts
    -   delete the unused import

* Improve tw locale

* Update tauri.conf.json

* 修改界面

似乎这里引入了一个逻辑判断错误,会导致打包之后的界面变宽变高。

* Update tauri.conf.json

* fix: ChatGPTNextWeb#2981 full screen button not works

* Fix type in sync.ts

Simple typo fix.

* Refactor Mask UI Page [Masks]

[+] refactor(mask.tsx): refactor simple search to be case-insensitive

* 提供同步聊天记录教程,同时翻译多国语言

* Update constant.ts

* 已拆分单个文件、翻译多国语言版本

* docs: fix typo in app/masks/en.ts

* fix serviceWorker cache

* Fix typo in README.md

passsword -> password

* Update README.md

* feat: close ChatGPTNextWeb#3031 user can set larger font size

* Update synchronise-chat-logs-cn.md

* Update README_CN.md

* Update README_KO.md

* Update README_KO.md

* Revert "fix serviceWorker cache: auto caching files by workbox"

* merge upstream/main to main (#6)

* Update chat.tsx

* Update chat.tsx

* [ADDED] MacOS detect

* [FIXED] now the default key should be CMD on MacOS

* [FIXED] now it should detects all macintosh

* UI Page [Auth Page]

[+] feat(auth.tsx): add support for resetting access token in resetAccessCode function
[+] fix(auth.tsx): fix formatting issue in resetAccessCode function
[+] feat(locales): add support for sub tips in Auth component for multiple languages :
  - Add sub tips in Arabic locale (ar.ts)
  - Add sub tips in Bengali locale (bn.ts)
  - Add sub tips in Chinese locale (cn.ts)
  - Add sub tips in English locale (en.ts)
  - Add sub tips in Indonesian locale (id.ts)

* Feat & Fix UI Page [Auth Page]

[+] feat(auth.tsx): add goChat function to navigate to chat page
[+] fix(auth.tsx): change onClick event from goHome to goChat

* Refactor Locale Indonesia

[+] refactor(id.ts): remove unused import and isApp variable
[+] fix(id.ts): update Unauthorized error message

* Fix & Refactor UI Page [Auth Page]

[+] fix(auth.tsx): fix conditional rendering of token input field
[+] refactor(auth.tsx): improve code readability by using conditional rendering for token input field

* Client App [Notification]

[+] feat(global.d.ts): add support for window.__TAURI__.notification methods
[+] feat(update.ts): add notification for new version availability
[+] fix(Cargo.toml): add tauri feature "notification-all" to enable notifications
[+] fix(tauri.conf.json): enable all notification features in tauri configuration

* Client App Fix Issue [Bug] 'export' button does not work ChatGPTNextWeb#2884

[+] fix(exporter.tsx): add async keyword to download function
[+] feat(exporter.tsx): add support for saving image file using window.__TAURI__ API
[+] feat(global.d.ts): add types for window.__TAURI__ API methods
[+] feat(locales): add translations for download success and failure messages
[+] feat(sync.ts): add support for generating backup file name with date and time
[+] fix(utils.ts): add async keyword to downloadAs function and add support for saving file using window.__TAURI__ API

* Fix & Feat Client App [Notification]

[+] fix(update.ts): remove unnecessary notification sending when permission is not granted
[+] feat(update.ts): add notification for already up to date version

* Feat & Fix "Client App [Notification]"

[+] feat(update.ts): add support for localization in update notifications
[+] fix(update.ts): add missing semicolon in useUpdateStore function

* Change log

-   config.ts
    -   line 72 remove type confirmation of x as x always has type 'number'
    -   line 135 remove redundant local variable
-   chat.ts
    -   delete unused import

* Change log

-   config.ts
    -   line 72: remove type confirmation of x as x always has type 'number'
    -   line 135: remove the redundant local variable
-   chat.ts
    -   delete the unused import

* Improve tw locale

* Update tauri.conf.json

* 修改界面

似乎这里引入了一个逻辑判断错误,会导致打包之后的界面变宽变高。

* Update tauri.conf.json

* fix: ChatGPTNextWeb#2981 full screen button not works

* Fix type in sync.ts

Simple typo fix.

* Refactor Mask UI Page [Masks]

[+] refactor(mask.tsx): refactor simple search to be case-insensitive

* 提供同步聊天记录教程,同时翻译多国语言

* Update constant.ts

* 已拆分单个文件、翻译多国语言版本

* docs: fix typo in app/masks/en.ts

* fix serviceWorker cache

* Fix typo in README.md

passsword -> password

* Update README.md

* feat: close ChatGPTNextWeb#3031 user can set larger font size

* Update synchronise-chat-logs-cn.md

* Update README_CN.md

* Update README_KO.md

* Update README_KO.md

* Revert "fix serviceWorker cache: auto caching files by workbox"

---------

Co-authored-by: Algorithm5838 <108630393+Algorithm5838@users.noreply.github.com>
Co-authored-by: Yifei Zhang <yidadaa@qq.com>
Co-authored-by: Eric R <hi@ericgit.me>
Co-authored-by: H0llyW00dzZ <priv8@btz.pm>
Co-authored-by: KeithHello <hongji.li@act1.co.jp>
Co-authored-by: Peter Dave Hello <hsu@peterdavehello.org>
Co-authored-by: GH Action - Upstream Sync <action@github.com>
Co-authored-by: Kong Gaowen <luckykong@users.noreply.github.com>
Co-authored-by: Jason O'Gray <1228915+ograycode@users.noreply.github.com>
Co-authored-by: H0llyW00dzZ <scure.apple@gmail.com>
Co-authored-by: mcheping520 <liuyiming53@outlook.com>
Co-authored-by: Surav Shrestha <surav.shrestha@outlook.com>
Co-authored-by: Jesse <43443357+jessegpt@users.noreply.github.com>
Co-authored-by: Ikko Eltociear Ashimine <eltociear@gmail.com>

* Feat Models [GPT-4] [GPT-3.5] [128K context]

[+] feat(constant.ts): add new models to DEFAULT_MODELS array

* Fix Typo [GPT-4]

[+] fix(constant.ts): fix typo in model name, change "ggpt-4-1106-preview" to "gpt-4-1106-preview"

* Refactor KnowledgeCutoff

[+] fix(constant.ts): update DEFAULT_SYSTEM_TEMPLATE to include knowledgeCutoff and time variables
[+] feat(chat.ts): add support for injecting system prompts based on model configuration

* fix: ChatGPTNextWeb#3016 disable sidebar transition on ios

* fix: ChatGPTNextWeb#3152 system prompt should be injected

* feat: default disable balance query

* feat: close ChatGPTNextWeb#2908 allow to disable parse settings from link

* fixup

* feat: sort model by name

* Update tauri.conf.json

* docs: up to date

* docs: fix typo in ChatGPTNextWeb#3171

* Update cloudflare-pages-cn.md

cloudflare 构建命令

* feat: close ChatGPTNextWeb#2954 chat summary should be copyable

* fix: ChatGPTNextWeb#3174 should prompt to confirm to delete chat

* feat: close ChatGPTNextWeb#3187 use CUSTOM_MODELS to control model list

* fix: ChatGPTNextWeb#3186 enable max_tokens in chat payload

* fix: ChatGPTNextWeb#3192 use smaller max_tokens as default

* fix: ChatGPTNextWeb#3196 3.5-turbo-1106 should use old cutoff date

* feat: wont send max_tokens

* feat: close ChatGPTNextWeb#935 add azure support

* fixup

* doc: update azure env vars

* Update README.md

* Update README.md

* fix: ChatGPTNextWeb#3207 ensure corner case

* Update tauri.conf.json

* fixbug

* Update constant.ts

* Update README_CN.md

* feat: ChatGPTNextWeb#3224 auto switch to first avaliable model

* feat: CUSTOM_MODELS support mapper

* chore: update doc for mapped `CUSTOM_MODELS`

* feat: close ChatGPTNextWeb#3222 share message list should start from clear context index

* Feat UI/UX Page Local Language [Exporter Message]

[+] fix(exporter.tsx): update the text in the ExportMessageModal component to use the localized title from the locale file
[+] feat(cn.ts, en.ts, id.ts): add localized title for the Exporter Description in the respective locale files

* Fix UI/UX Page Local Language [Exporter Message]

fix(locales): fix incorrect description title in en.ts and id.ts
 - Change "Only messages after clearing the context will be displayed" to "Only messages before clearing the context will be displayed" in en.ts
 - Change "Hanya pesan setelah menghapus konteks yang akan ditampilkan" to "Hanya pesan sebelum menghapus konteks yang akan ditampilkan" in id.ts

* Revert "Fix UI/UX Page Local Language [Exporter Message]"

This reverts commit a46f081.
Reason : better after instead of before

* UI (model selection): hide unavailable model options

* fix: ChatGPTNextWeb#3189 should correct math eq in exporter

* fix: ChatGPTNextWeb#2841 dollar sign conflict with latex math

* fix: ChatGPTNextWeb#3241 should not ensure openai url non-empty

* Update README.md

* chore(deps-dev): bump @types/node from 20.3.3 to 20.9.0

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.3.3 to 20.9.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps-dev): bump @types/spark-md5 from 3.0.2 to 3.0.4

Bumps [@types/spark-md5](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/spark-md5) from 3.0.2 to 3.0.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/spark-md5)

---
updated-dependencies:
- dependency-name: "@types/spark-md5"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps): bump mermaid from 10.3.1 to 10.6.1

Bumps [mermaid](https://github.com/mermaid-js/mermaid) from 10.3.1 to 10.6.1.
- [Release notes](https://github.com/mermaid-js/mermaid/releases)
- [Changelog](https://github.com/mermaid-js/mermaid/blob/develop/CHANGELOG.md)
- [Commits](mermaid-js/mermaid@v10.3.1...v10.6.1)

---
updated-dependencies:
- dependency-name: mermaid
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps): bump emoji-picker-react from 4.5.1 to 4.5.15

Bumps [emoji-picker-react](https://github.com/ealush/emoji-picker-react) from 4.5.1 to 4.5.15.
- [Release notes](https://github.com/ealush/emoji-picker-react/releases)
- [Commits](https://github.com/ealush/emoji-picker-react/commits)

---
updated-dependencies:
- dependency-name: emoji-picker-react
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps): bump nanoid from 4.0.2 to 5.0.3

Bumps [nanoid](https://github.com/ai/nanoid) from 4.0.2 to 5.0.3.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](ai/nanoid@4.0.2...5.0.3)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix UI/UX Page [Settings]

[+] fix(settings.tsx): fix condition to show balance query in settings component
[+] fix(settings.tsx): add condition to hide balance query for app clients

* fix: ChatGPTNextWeb#3275 refuse on server side if hide user api key

* config: exclude hkg1 from the deployment regions of the edge function

* Update tauri.conf.json

* chore: update gh actions nodejs version to 18

* config: disable ip forward in vercel json config

* Update vercel.json

* Update vercel.json

* Translation of the application into Brazilian Portuguese

* Update vercel.json

* feat: animate streaming response to make more smooth

* feat: close ChatGPTNextWeb#3301 enable or diable default models with -all / +all

* feat: close ChatGPTNextWeb#3304 use `=` instead of `:` to map model name in CUSTOM_MODELS

* feat: close ChatGPTNextWeb#3300 support multiple api keys

* feat: better animation speed

* fix(locales): type error in pt.ts

* fix(CUSTOM_MODELS):ChatGPTNextWeb#3349 Dependency chatStore otherwise the session and view will not updated

* Update README.md

* Update README.md

* Fix UI/UX Page Chats [Memory Prompt] [Stored Local Storage]

- [+] fix(chat.ts): update the memory prompt in onFinish callback
- [+] feat(chat.ts): update the current session with lastSummarizeIndex and memoryPrompt

* Fix Api Common [Server Side] [Console Log]

- [+] fix(common.ts): fix console.log statement for [Org ID] to handle undefined value

* Fixup Api Common [Server Side] [Console Log]

- [+] fix(common.ts): fix condition to check if serverConfig.openaiOrgId is not undefined

* Chore Docs (README.md)

- [+] chore(README.md): add support for Korean and Indonesian languages

* Fix & Refactor UI/UX Page [Auth]

- [+] fix(auth.tsx): fix condition to set custom endpoint to true if it's app
- [+] refactor(auth.tsx): update accessStore to set useCustomConfig to true

* Feat UI/UX Page [Settings]

- [+] feat(settings.tsx): set useCustomConfig to true if clientConfig.isApp is truthy

* Revert "Fix & Refactor UI/UX Page [Auth]"

This reverts commit d76e744.

Reason: Move to commits bf5e7aa

* Fix & Refactor UI/UX Page [Settings]

- [+] fix(settings.tsx): fix conditional rendering of ListItem based on clientConfig.isApp
- [+] refactor(settings.tsx): improve readability of conditional rendering code

* Update README.md

* Update README_CN.md

* update .env.template and docker-compose.yml

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Algorithm5838 <108630393+Algorithm5838@users.noreply.github.com>
Co-authored-by: Yifei Zhang <yidadaa@qq.com>
Co-authored-by: Eric R <hi@ericgit.me>
Co-authored-by: H0llyW00dzZ <priv8@btz.pm>
Co-authored-by: KeithHello <hongji.li@act1.co.jp>
Co-authored-by: Peter Dave Hello <hsu@peterdavehello.org>
Co-authored-by: GH Action - Upstream Sync <action@github.com>
Co-authored-by: Kong Gaowen <luckykong@users.noreply.github.com>
Co-authored-by: Jason O'Gray <1228915+ograycode@users.noreply.github.com>
Co-authored-by: H0llyW00dzZ <scure.apple@gmail.com>
Co-authored-by: mcheping520 <liuyiming53@outlook.com>
Co-authored-by: Surav Shrestha <surav.shrestha@outlook.com>
Co-authored-by: Jesse <43443357+jessegpt@users.noreply.github.com>
Co-authored-by: Ikko Eltociear Ashimine <eltociear@gmail.com>
Co-authored-by: fengsh <shaohong.feng.78@gmail.com>
Co-authored-by: 安忆 <i@anyi.in>
Co-authored-by: bob <hekbobo@gmail.com>
Co-authored-by: Ensteinjun <luoming_jun@126.com>
Co-authored-by: nanaya <nanaya100@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Eric-2369 <admin@eri.cx>
Co-authored-by: Yuri Filipe <yurifelipe64@hotmail.com>
Co-authored-by: durian <godogpt@gmail.com>
fengsh27 added a commit to fengsh27/ChatGPT-Next-Web that referenced this pull request Dec 1, 2023
* introduce biomedical mask

* generate globally unique id as session id

* To communicate with biochatter, disable stream mode and add param session_id

* communicate with biochatter server (#2)

Co-authored-by: fengsh <shaohong.feng.78@gmail.com>

* merge main to develop (#3)

* Update chat.tsx

* Update chat.tsx

* [ADDED] MacOS detect

* [FIXED] now the default key should be CMD on MacOS

* [FIXED] now it should detects all macintosh

* UI Page [Auth Page]

[+] feat(auth.tsx): add support for resetting access token in resetAccessCode function
[+] fix(auth.tsx): fix formatting issue in resetAccessCode function
[+] feat(locales): add support for sub tips in Auth component for multiple languages :
  - Add sub tips in Arabic locale (ar.ts)
  - Add sub tips in Bengali locale (bn.ts)
  - Add sub tips in Chinese locale (cn.ts)
  - Add sub tips in English locale (en.ts)
  - Add sub tips in Indonesian locale (id.ts)

* Feat & Fix UI Page [Auth Page]

[+] feat(auth.tsx): add goChat function to navigate to chat page
[+] fix(auth.tsx): change onClick event from goHome to goChat

* Refactor Locale Indonesia

[+] refactor(id.ts): remove unused import and isApp variable
[+] fix(id.ts): update Unauthorized error message

* Fix & Refactor UI Page [Auth Page]

[+] fix(auth.tsx): fix conditional rendering of token input field
[+] refactor(auth.tsx): improve code readability by using conditional rendering for token input field

* Client App [Notification]

[+] feat(global.d.ts): add support for window.__TAURI__.notification methods
[+] feat(update.ts): add notification for new version availability
[+] fix(Cargo.toml): add tauri feature "notification-all" to enable notifications
[+] fix(tauri.conf.json): enable all notification features in tauri configuration

* Client App Fix Issue [Bug] 'export' button does not work ChatGPTNextWeb#2884

[+] fix(exporter.tsx): add async keyword to download function
[+] feat(exporter.tsx): add support for saving image file using window.__TAURI__ API
[+] feat(global.d.ts): add types for window.__TAURI__ API methods
[+] feat(locales): add translations for download success and failure messages
[+] feat(sync.ts): add support for generating backup file name with date and time
[+] fix(utils.ts): add async keyword to downloadAs function and add support for saving file using window.__TAURI__ API

* Fix & Feat Client App [Notification]

[+] fix(update.ts): remove unnecessary notification sending when permission is not granted
[+] feat(update.ts): add notification for already up to date version

* Feat & Fix "Client App [Notification]"

[+] feat(update.ts): add support for localization in update notifications
[+] fix(update.ts): add missing semicolon in useUpdateStore function

* Change log

-   config.ts
    -   line 72 remove type confirmation of x as x always has type 'number'
    -   line 135 remove redundant local variable
-   chat.ts
    -   delete unused import

* Change log

-   config.ts
    -   line 72: remove type confirmation of x as x always has type 'number'
    -   line 135: remove the redundant local variable
-   chat.ts
    -   delete the unused import

* Improve tw locale

* Update tauri.conf.json

* 修改界面

似乎这里引入了一个逻辑判断错误,会导致打包之后的界面变宽变高。

* Update tauri.conf.json

* fix: ChatGPTNextWeb#2981 full screen button not works

* Fix type in sync.ts

Simple typo fix.

* Refactor Mask UI Page [Masks]

[+] refactor(mask.tsx): refactor simple search to be case-insensitive

* 提供同步聊天记录教程,同时翻译多国语言

* Update constant.ts

* 已拆分单个文件、翻译多国语言版本

* docs: fix typo in app/masks/en.ts

* fix serviceWorker cache

* Fix typo in README.md

passsword -> password

* Update README.md

* feat: close ChatGPTNextWeb#3031 user can set larger font size

---------

Co-authored-by: Algorithm5838 <108630393+Algorithm5838@users.noreply.github.com>
Co-authored-by: Yifei Zhang <yidadaa@qq.com>
Co-authored-by: Eric R <hi@ericgit.me>
Co-authored-by: H0llyW00dzZ <priv8@btz.pm>
Co-authored-by: KeithHello <hongji.li@act1.co.jp>
Co-authored-by: Peter Dave Hello <hsu@peterdavehello.org>
Co-authored-by: GH Action - Upstream Sync <action@github.com>
Co-authored-by: Kong Gaowen <luckykong@users.noreply.github.com>
Co-authored-by: Jason O'Gray <1228915+ograycode@users.noreply.github.com>
Co-authored-by: H0llyW00dzZ <scure.apple@gmail.com>
Co-authored-by: mcheping520 <liuyiming53@outlook.com>
Co-authored-by: Surav Shrestha <surav.shrestha@outlook.com>
Co-authored-by: Jesse <43443357+jessegpt@users.noreply.github.com>
Co-authored-by: Ikko Eltociear Ashimine <eltociear@gmail.com>
Co-authored-by: fengsh <shaohong.feng.78@gmail.com>

* make docker-compose.yml work (#4)

* make docker-compose.yml work

* remove useless file

* update .gitignore

---------

Co-authored-by: fengsh <shaohong.feng.78@gmail.com>

* upgrade bioserver version (#5)

* upgrade bioserver

* add .bioserver.env.template

* modify comments

---------

Co-authored-by: fengsh <shaohong.feng.78@gmail.com>

* Wip/fengsh/develop/chat gse next/merge main to develop (#7)

* Update chat.tsx

* Update chat.tsx

* [ADDED] MacOS detect

* [FIXED] now the default key should be CMD on MacOS

* [FIXED] now it should detects all macintosh

* UI Page [Auth Page]

[+] feat(auth.tsx): add support for resetting access token in resetAccessCode function
[+] fix(auth.tsx): fix formatting issue in resetAccessCode function
[+] feat(locales): add support for sub tips in Auth component for multiple languages :
  - Add sub tips in Arabic locale (ar.ts)
  - Add sub tips in Bengali locale (bn.ts)
  - Add sub tips in Chinese locale (cn.ts)
  - Add sub tips in English locale (en.ts)
  - Add sub tips in Indonesian locale (id.ts)

* Feat & Fix UI Page [Auth Page]

[+] feat(auth.tsx): add goChat function to navigate to chat page
[+] fix(auth.tsx): change onClick event from goHome to goChat

* Refactor Locale Indonesia

[+] refactor(id.ts): remove unused import and isApp variable
[+] fix(id.ts): update Unauthorized error message

* Fix & Refactor UI Page [Auth Page]

[+] fix(auth.tsx): fix conditional rendering of token input field
[+] refactor(auth.tsx): improve code readability by using conditional rendering for token input field

* Client App [Notification]

[+] feat(global.d.ts): add support for window.__TAURI__.notification methods
[+] feat(update.ts): add notification for new version availability
[+] fix(Cargo.toml): add tauri feature "notification-all" to enable notifications
[+] fix(tauri.conf.json): enable all notification features in tauri configuration

* Client App Fix Issue [Bug] 'export' button does not work ChatGPTNextWeb#2884

[+] fix(exporter.tsx): add async keyword to download function
[+] feat(exporter.tsx): add support for saving image file using window.__TAURI__ API
[+] feat(global.d.ts): add types for window.__TAURI__ API methods
[+] feat(locales): add translations for download success and failure messages
[+] feat(sync.ts): add support for generating backup file name with date and time
[+] fix(utils.ts): add async keyword to downloadAs function and add support for saving file using window.__TAURI__ API

* Fix & Feat Client App [Notification]

[+] fix(update.ts): remove unnecessary notification sending when permission is not granted
[+] feat(update.ts): add notification for already up to date version

* Feat & Fix "Client App [Notification]"

[+] feat(update.ts): add support for localization in update notifications
[+] fix(update.ts): add missing semicolon in useUpdateStore function

* Change log

-   config.ts
    -   line 72 remove type confirmation of x as x always has type 'number'
    -   line 135 remove redundant local variable
-   chat.ts
    -   delete unused import

* Change log

-   config.ts
    -   line 72: remove type confirmation of x as x always has type 'number'
    -   line 135: remove the redundant local variable
-   chat.ts
    -   delete the unused import

* Improve tw locale

* Update tauri.conf.json

* 修改界面

似乎这里引入了一个逻辑判断错误,会导致打包之后的界面变宽变高。

* Update tauri.conf.json

* fix: ChatGPTNextWeb#2981 full screen button not works

* Fix type in sync.ts

Simple typo fix.

* Refactor Mask UI Page [Masks]

[+] refactor(mask.tsx): refactor simple search to be case-insensitive

* 提供同步聊天记录教程,同时翻译多国语言

* Update constant.ts

* 已拆分单个文件、翻译多国语言版本

* docs: fix typo in app/masks/en.ts

* fix serviceWorker cache

* Fix typo in README.md

passsword -> password

* Update README.md

* feat: close ChatGPTNextWeb#3031 user can set larger font size

* merge upstream/main to main (#6)

* Update chat.tsx

* Update chat.tsx

* [ADDED] MacOS detect

* [FIXED] now the default key should be CMD on MacOS

* [FIXED] now it should detects all macintosh

* UI Page [Auth Page]

[+] feat(auth.tsx): add support for resetting access token in resetAccessCode function
[+] fix(auth.tsx): fix formatting issue in resetAccessCode function
[+] feat(locales): add support for sub tips in Auth component for multiple languages :
  - Add sub tips in Arabic locale (ar.ts)
  - Add sub tips in Bengali locale (bn.ts)
  - Add sub tips in Chinese locale (cn.ts)
  - Add sub tips in English locale (en.ts)
  - Add sub tips in Indonesian locale (id.ts)

* Feat & Fix UI Page [Auth Page]

[+] feat(auth.tsx): add goChat function to navigate to chat page
[+] fix(auth.tsx): change onClick event from goHome to goChat

* Refactor Locale Indonesia

[+] refactor(id.ts): remove unused import and isApp variable
[+] fix(id.ts): update Unauthorized error message

* Fix & Refactor UI Page [Auth Page]

[+] fix(auth.tsx): fix conditional rendering of token input field
[+] refactor(auth.tsx): improve code readability by using conditional rendering for token input field

* Client App [Notification]

[+] feat(global.d.ts): add support for window.__TAURI__.notification methods
[+] feat(update.ts): add notification for new version availability
[+] fix(Cargo.toml): add tauri feature "notification-all" to enable notifications
[+] fix(tauri.conf.json): enable all notification features in tauri configuration

* Client App Fix Issue [Bug] 'export' button does not work ChatGPTNextWeb#2884

[+] fix(exporter.tsx): add async keyword to download function
[+] feat(exporter.tsx): add support for saving image file using window.__TAURI__ API
[+] feat(global.d.ts): add types for window.__TAURI__ API methods
[+] feat(locales): add translations for download success and failure messages
[+] feat(sync.ts): add support for generating backup file name with date and time
[+] fix(utils.ts): add async keyword to downloadAs function and add support for saving file using window.__TAURI__ API

* Fix & Feat Client App [Notification]

[+] fix(update.ts): remove unnecessary notification sending when permission is not granted
[+] feat(update.ts): add notification for already up to date version

* Feat & Fix "Client App [Notification]"

[+] feat(update.ts): add support for localization in update notifications
[+] fix(update.ts): add missing semicolon in useUpdateStore function

* Change log

-   config.ts
    -   line 72 remove type confirmation of x as x always has type 'number'
    -   line 135 remove redundant local variable
-   chat.ts
    -   delete unused import

* Change log

-   config.ts
    -   line 72: remove type confirmation of x as x always has type 'number'
    -   line 135: remove the redundant local variable
-   chat.ts
    -   delete the unused import

* Improve tw locale

* Update tauri.conf.json

* 修改界面

似乎这里引入了一个逻辑判断错误,会导致打包之后的界面变宽变高。

* Update tauri.conf.json

* fix: ChatGPTNextWeb#2981 full screen button not works

* Fix type in sync.ts

Simple typo fix.

* Refactor Mask UI Page [Masks]

[+] refactor(mask.tsx): refactor simple search to be case-insensitive

* 提供同步聊天记录教程,同时翻译多国语言

* Update constant.ts

* 已拆分单个文件、翻译多国语言版本

* docs: fix typo in app/masks/en.ts

* fix serviceWorker cache

* Fix typo in README.md

passsword -> password

* Update README.md

* feat: close ChatGPTNextWeb#3031 user can set larger font size

* Update synchronise-chat-logs-cn.md

* Update README_CN.md

* Update README_KO.md

* Update README_KO.md

* Revert "fix serviceWorker cache: auto caching files by workbox"

---------

Co-authored-by: Algorithm5838 <108630393+Algorithm5838@users.noreply.github.com>
Co-authored-by: Yifei Zhang <yidadaa@qq.com>
Co-authored-by: Eric R <hi@ericgit.me>
Co-authored-by: H0llyW00dzZ <priv8@btz.pm>
Co-authored-by: KeithHello <hongji.li@act1.co.jp>
Co-authored-by: Peter Dave Hello <hsu@peterdavehello.org>
Co-authored-by: GH Action - Upstream Sync <action@github.com>
Co-authored-by: Kong Gaowen <luckykong@users.noreply.github.com>
Co-authored-by: Jason O'Gray <1228915+ograycode@users.noreply.github.com>
Co-authored-by: H0llyW00dzZ <scure.apple@gmail.com>
Co-authored-by: mcheping520 <liuyiming53@outlook.com>
Co-authored-by: Surav Shrestha <surav.shrestha@outlook.com>
Co-authored-by: Jesse <43443357+jessegpt@users.noreply.github.com>
Co-authored-by: Ikko Eltociear Ashimine <eltociear@gmail.com>

---------

Co-authored-by: Algorithm5838 <108630393+Algorithm5838@users.noreply.github.com>
Co-authored-by: Yifei Zhang <yidadaa@qq.com>
Co-authored-by: Eric R <hi@ericgit.me>
Co-authored-by: H0llyW00dzZ <priv8@btz.pm>
Co-authored-by: KeithHello <hongji.li@act1.co.jp>
Co-authored-by: Peter Dave Hello <hsu@peterdavehello.org>
Co-authored-by: GH Action - Upstream Sync <action@github.com>
Co-authored-by: Kong Gaowen <luckykong@users.noreply.github.com>
Co-authored-by: Jason O'Gray <1228915+ograycode@users.noreply.github.com>
Co-authored-by: H0llyW00dzZ <scure.apple@gmail.com>
Co-authored-by: mcheping520 <liuyiming53@outlook.com>
Co-authored-by: Surav Shrestha <surav.shrestha@outlook.com>
Co-authored-by: Jesse <43443357+jessegpt@users.noreply.github.com>
Co-authored-by: Ikko Eltociear Ashimine <eltociear@gmail.com>
Co-authored-by: fengsh <shaohong.feng.78@gmail.com>

* Update mask.tsx

* merge main to develop/ChatGSE-Next (#8)

* Update chat.tsx

* Update chat.tsx

* [ADDED] MacOS detect

* [FIXED] now the default key should be CMD on MacOS

* [FIXED] now it should detects all macintosh

* UI Page [Auth Page]

[+] feat(auth.tsx): add support for resetting access token in resetAccessCode function
[+] fix(auth.tsx): fix formatting issue in resetAccessCode function
[+] feat(locales): add support for sub tips in Auth component for multiple languages :
  - Add sub tips in Arabic locale (ar.ts)
  - Add sub tips in Bengali locale (bn.ts)
  - Add sub tips in Chinese locale (cn.ts)
  - Add sub tips in English locale (en.ts)
  - Add sub tips in Indonesian locale (id.ts)

* Feat & Fix UI Page [Auth Page]

[+] feat(auth.tsx): add goChat function to navigate to chat page
[+] fix(auth.tsx): change onClick event from goHome to goChat

* Refactor Locale Indonesia

[+] refactor(id.ts): remove unused import and isApp variable
[+] fix(id.ts): update Unauthorized error message

* Fix & Refactor UI Page [Auth Page]

[+] fix(auth.tsx): fix conditional rendering of token input field
[+] refactor(auth.tsx): improve code readability by using conditional rendering for token input field

* Client App [Notification]

[+] feat(global.d.ts): add support for window.__TAURI__.notification methods
[+] feat(update.ts): add notification for new version availability
[+] fix(Cargo.toml): add tauri feature "notification-all" to enable notifications
[+] fix(tauri.conf.json): enable all notification features in tauri configuration

* Client App Fix Issue [Bug] 'export' button does not work ChatGPTNextWeb#2884

[+] fix(exporter.tsx): add async keyword to download function
[+] feat(exporter.tsx): add support for saving image file using window.__TAURI__ API
[+] feat(global.d.ts): add types for window.__TAURI__ API methods
[+] feat(locales): add translations for download success and failure messages
[+] feat(sync.ts): add support for generating backup file name with date and time
[+] fix(utils.ts): add async keyword to downloadAs function and add support for saving file using window.__TAURI__ API

* Fix & Feat Client App [Notification]

[+] fix(update.ts): remove unnecessary notification sending when permission is not granted
[+] feat(update.ts): add notification for already up to date version

* Feat & Fix "Client App [Notification]"

[+] feat(update.ts): add support for localization in update notifications
[+] fix(update.ts): add missing semicolon in useUpdateStore function

* Change log

-   config.ts
    -   line 72 remove type confirmation of x as x always has type 'number'
    -   line 135 remove redundant local variable
-   chat.ts
    -   delete unused import

* Change log

-   config.ts
    -   line 72: remove type confirmation of x as x always has type 'number'
    -   line 135: remove the redundant local variable
-   chat.ts
    -   delete the unused import

* Improve tw locale

* Update tauri.conf.json

* 修改界面

似乎这里引入了一个逻辑判断错误,会导致打包之后的界面变宽变高。

* Update tauri.conf.json

* fix: ChatGPTNextWeb#2981 full screen button not works

* Fix type in sync.ts

Simple typo fix.

* Refactor Mask UI Page [Masks]

[+] refactor(mask.tsx): refactor simple search to be case-insensitive

* 提供同步聊天记录教程,同时翻译多国语言

* Update constant.ts

* 已拆分单个文件、翻译多国语言版本

* docs: fix typo in app/masks/en.ts

* fix serviceWorker cache

* Fix typo in README.md

passsword -> password

* Update README.md

* feat: close ChatGPTNextWeb#3031 user can set larger font size

* Update synchronise-chat-logs-cn.md

* Update README_CN.md

* Update README_KO.md

* Update README_KO.md

* Revert "fix serviceWorker cache: auto caching files by workbox"

* merge upstream/main to main (#6)

* Update chat.tsx

* Update chat.tsx

* [ADDED] MacOS detect

* [FIXED] now the default key should be CMD on MacOS

* [FIXED] now it should detects all macintosh

* UI Page [Auth Page]

[+] feat(auth.tsx): add support for resetting access token in resetAccessCode function
[+] fix(auth.tsx): fix formatting issue in resetAccessCode function
[+] feat(locales): add support for sub tips in Auth component for multiple languages :
  - Add sub tips in Arabic locale (ar.ts)
  - Add sub tips in Bengali locale (bn.ts)
  - Add sub tips in Chinese locale (cn.ts)
  - Add sub tips in English locale (en.ts)
  - Add sub tips in Indonesian locale (id.ts)

* Feat & Fix UI Page [Auth Page]

[+] feat(auth.tsx): add goChat function to navigate to chat page
[+] fix(auth.tsx): change onClick event from goHome to goChat

* Refactor Locale Indonesia

[+] refactor(id.ts): remove unused import and isApp variable
[+] fix(id.ts): update Unauthorized error message

* Fix & Refactor UI Page [Auth Page]

[+] fix(auth.tsx): fix conditional rendering of token input field
[+] refactor(auth.tsx): improve code readability by using conditional rendering for token input field

* Client App [Notification]

[+] feat(global.d.ts): add support for window.__TAURI__.notification methods
[+] feat(update.ts): add notification for new version availability
[+] fix(Cargo.toml): add tauri feature "notification-all" to enable notifications
[+] fix(tauri.conf.json): enable all notification features in tauri configuration

* Client App Fix Issue [Bug] 'export' button does not work ChatGPTNextWeb#2884

[+] fix(exporter.tsx): add async keyword to download function
[+] feat(exporter.tsx): add support for saving image file using window.__TAURI__ API
[+] feat(global.d.ts): add types for window.__TAURI__ API methods
[+] feat(locales): add translations for download success and failure messages
[+] feat(sync.ts): add support for generating backup file name with date and time
[+] fix(utils.ts): add async keyword to downloadAs function and add support for saving file using window.__TAURI__ API

* Fix & Feat Client App [Notification]

[+] fix(update.ts): remove unnecessary notification sending when permission is not granted
[+] feat(update.ts): add notification for already up to date version

* Feat & Fix "Client App [Notification]"

[+] feat(update.ts): add support for localization in update notifications
[+] fix(update.ts): add missing semicolon in useUpdateStore function

* Change log

-   config.ts
    -   line 72 remove type confirmation of x as x always has type 'number'
    -   line 135 remove redundant local variable
-   chat.ts
    -   delete unused import

* Change log

-   config.ts
    -   line 72: remove type confirmation of x as x always has type 'number'
    -   line 135: remove the redundant local variable
-   chat.ts
    -   delete the unused import

* Improve tw locale

* Update tauri.conf.json

* 修改界面

似乎这里引入了一个逻辑判断错误,会导致打包之后的界面变宽变高。

* Update tauri.conf.json

* fix: ChatGPTNextWeb#2981 full screen button not works

* Fix type in sync.ts

Simple typo fix.

* Refactor Mask UI Page [Masks]

[+] refactor(mask.tsx): refactor simple search to be case-insensitive

* 提供同步聊天记录教程,同时翻译多国语言

* Update constant.ts

* 已拆分单个文件、翻译多国语言版本

* docs: fix typo in app/masks/en.ts

* fix serviceWorker cache

* Fix typo in README.md

passsword -> password

* Update README.md

* feat: close ChatGPTNextWeb#3031 user can set larger font size

* Update synchronise-chat-logs-cn.md

* Update README_CN.md

* Update README_KO.md

* Update README_KO.md

* Revert "fix serviceWorker cache: auto caching files by workbox"

---------

Co-authored-by: Algorithm5838 <108630393+Algorithm5838@users.noreply.github.com>
Co-authored-by: Yifei Zhang <yidadaa@qq.com>
Co-authored-by: Eric R <hi@ericgit.me>
Co-authored-by: H0llyW00dzZ <priv8@btz.pm>
Co-authored-by: KeithHello <hongji.li@act1.co.jp>
Co-authored-by: Peter Dave Hello <hsu@peterdavehello.org>
Co-authored-by: GH Action - Upstream Sync <action@github.com>
Co-authored-by: Kong Gaowen <luckykong@users.noreply.github.com>
Co-authored-by: Jason O'Gray <1228915+ograycode@users.noreply.github.com>
Co-authored-by: H0llyW00dzZ <scure.apple@gmail.com>
Co-authored-by: mcheping520 <liuyiming53@outlook.com>
Co-authored-by: Surav Shrestha <surav.shrestha@outlook.com>
Co-authored-by: Jesse <43443357+jessegpt@users.noreply.github.com>
Co-authored-by: Ikko Eltociear Ashimine <eltociear@gmail.com>

* Feat Models [GPT-4] [GPT-3.5] [128K context]

[+] feat(constant.ts): add new models to DEFAULT_MODELS array

* Fix Typo [GPT-4]

[+] fix(constant.ts): fix typo in model name, change "ggpt-4-1106-preview" to "gpt-4-1106-preview"

* Refactor KnowledgeCutoff

[+] fix(constant.ts): update DEFAULT_SYSTEM_TEMPLATE to include knowledgeCutoff and time variables
[+] feat(chat.ts): add support for injecting system prompts based on model configuration

* fix: ChatGPTNextWeb#3016 disable sidebar transition on ios

* fix: ChatGPTNextWeb#3152 system prompt should be injected

* feat: default disable balance query

* feat: close ChatGPTNextWeb#2908 allow to disable parse settings from link

* fixup

* feat: sort model by name

* Update tauri.conf.json

* docs: up to date

* docs: fix typo in ChatGPTNextWeb#3171

* Update cloudflare-pages-cn.md

cloudflare 构建命令

* feat: close ChatGPTNextWeb#2954 chat summary should be copyable

* fix: ChatGPTNextWeb#3174 should prompt to confirm to delete chat

* feat: close ChatGPTNextWeb#3187 use CUSTOM_MODELS to control model list

* fix: ChatGPTNextWeb#3186 enable max_tokens in chat payload

* fix: ChatGPTNextWeb#3192 use smaller max_tokens as default

* fix: ChatGPTNextWeb#3196 3.5-turbo-1106 should use old cutoff date

* feat: wont send max_tokens

* feat: close ChatGPTNextWeb#935 add azure support

* fixup

* doc: update azure env vars

* Update README.md

* Update README.md

* fix: ChatGPTNextWeb#3207 ensure corner case

* Update tauri.conf.json

* fixbug

* Update constant.ts

* Update README_CN.md

* feat: ChatGPTNextWeb#3224 auto switch to first avaliable model

* feat: CUSTOM_MODELS support mapper

* chore: update doc for mapped `CUSTOM_MODELS`

* feat: close ChatGPTNextWeb#3222 share message list should start from clear context index

* Feat UI/UX Page Local Language [Exporter Message]

[+] fix(exporter.tsx): update the text in the ExportMessageModal component to use the localized title from the locale file
[+] feat(cn.ts, en.ts, id.ts): add localized title for the Exporter Description in the respective locale files

* Fix UI/UX Page Local Language [Exporter Message]

fix(locales): fix incorrect description title in en.ts and id.ts
 - Change "Only messages after clearing the context will be displayed" to "Only messages before clearing the context will be displayed" in en.ts
 - Change "Hanya pesan setelah menghapus konteks yang akan ditampilkan" to "Hanya pesan sebelum menghapus konteks yang akan ditampilkan" in id.ts

* Revert "Fix UI/UX Page Local Language [Exporter Message]"

This reverts commit a46f081.
Reason : better after instead of before

* UI (model selection): hide unavailable model options

* fix: ChatGPTNextWeb#3189 should correct math eq in exporter

* fix: ChatGPTNextWeb#2841 dollar sign conflict with latex math

* fix: ChatGPTNextWeb#3241 should not ensure openai url non-empty

* Update README.md

* chore(deps-dev): bump @types/node from 20.3.3 to 20.9.0

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.3.3 to 20.9.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps-dev): bump @types/spark-md5 from 3.0.2 to 3.0.4

Bumps [@types/spark-md5](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/spark-md5) from 3.0.2 to 3.0.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/spark-md5)

---
updated-dependencies:
- dependency-name: "@types/spark-md5"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps): bump mermaid from 10.3.1 to 10.6.1

Bumps [mermaid](https://github.com/mermaid-js/mermaid) from 10.3.1 to 10.6.1.
- [Release notes](https://github.com/mermaid-js/mermaid/releases)
- [Changelog](https://github.com/mermaid-js/mermaid/blob/develop/CHANGELOG.md)
- [Commits](mermaid-js/mermaid@v10.3.1...v10.6.1)

---
updated-dependencies:
- dependency-name: mermaid
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps): bump emoji-picker-react from 4.5.1 to 4.5.15

Bumps [emoji-picker-react](https://github.com/ealush/emoji-picker-react) from 4.5.1 to 4.5.15.
- [Release notes](https://github.com/ealush/emoji-picker-react/releases)
- [Commits](https://github.com/ealush/emoji-picker-react/commits)

---
updated-dependencies:
- dependency-name: emoji-picker-react
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps): bump nanoid from 4.0.2 to 5.0.3

Bumps [nanoid](https://github.com/ai/nanoid) from 4.0.2 to 5.0.3.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](ai/nanoid@4.0.2...5.0.3)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix UI/UX Page [Settings]

[+] fix(settings.tsx): fix condition to show balance query in settings component
[+] fix(settings.tsx): add condition to hide balance query for app clients

* fix: ChatGPTNextWeb#3275 refuse on server side if hide user api key

* config: exclude hkg1 from the deployment regions of the edge function

* Update tauri.conf.json

* chore: update gh actions nodejs version to 18

* config: disable ip forward in vercel json config

* Update vercel.json

* Update vercel.json

* Translation of the application into Brazilian Portuguese

* Update vercel.json

* feat: animate streaming response to make more smooth

* feat: close ChatGPTNextWeb#3301 enable or diable default models with -all / +all

* feat: close ChatGPTNextWeb#3304 use `=` instead of `:` to map model name in CUSTOM_MODELS

* feat: close ChatGPTNextWeb#3300 support multiple api keys

* feat: better animation speed

* fix(locales): type error in pt.ts

* fix(CUSTOM_MODELS):ChatGPTNextWeb#3349 Dependency chatStore otherwise the session and view will not updated

* Update README.md

* Update README.md

* Fix UI/UX Page Chats [Memory Prompt] [Stored Local Storage]

- [+] fix(chat.ts): update the memory prompt in onFinish callback
- [+] feat(chat.ts): update the current session with lastSummarizeIndex and memoryPrompt

* Fix Api Common [Server Side] [Console Log]

- [+] fix(common.ts): fix console.log statement for [Org ID] to handle undefined value

* Fixup Api Common [Server Side] [Console Log]

- [+] fix(common.ts): fix condition to check if serverConfig.openaiOrgId is not undefined

* Chore Docs (README.md)

- [+] chore(README.md): add support for Korean and Indonesian languages

* Fix & Refactor UI/UX Page [Auth]

- [+] fix(auth.tsx): fix condition to set custom endpoint to true if it's app
- [+] refactor(auth.tsx): update accessStore to set useCustomConfig to true

* Feat UI/UX Page [Settings]

- [+] feat(settings.tsx): set useCustomConfig to true if clientConfig.isApp is truthy

* Revert "Fix & Refactor UI/UX Page [Auth]"

This reverts commit d76e744.

Reason: Move to commits bf5e7aa

* Fix & Refactor UI/UX Page [Settings]

- [+] fix(settings.tsx): fix conditional rendering of ListItem based on clientConfig.isApp
- [+] refactor(settings.tsx): improve readability of conditional rendering code

* Update README.md

* Update README_CN.md

* update .env.template and docker-compose.yml

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Algorithm5838 <108630393+Algorithm5838@users.noreply.github.com>
Co-authored-by: Yifei Zhang <yidadaa@qq.com>
Co-authored-by: Eric R <hi@ericgit.me>
Co-authored-by: H0llyW00dzZ <priv8@btz.pm>
Co-authored-by: KeithHello <hongji.li@act1.co.jp>
Co-authored-by: Peter Dave Hello <hsu@peterdavehello.org>
Co-authored-by: GH Action - Upstream Sync <action@github.com>
Co-authored-by: Kong Gaowen <luckykong@users.noreply.github.com>
Co-authored-by: Jason O'Gray <1228915+ograycode@users.noreply.github.com>
Co-authored-by: H0llyW00dzZ <scure.apple@gmail.com>
Co-authored-by: mcheping520 <liuyiming53@outlook.com>
Co-authored-by: Surav Shrestha <surav.shrestha@outlook.com>
Co-authored-by: Jesse <43443357+jessegpt@users.noreply.github.com>
Co-authored-by: Ikko Eltociear Ashimine <eltociear@gmail.com>
Co-authored-by: fengsh <shaohong.feng.78@gmail.com>
Co-authored-by: 安忆 <i@anyi.in>
Co-authored-by: bob <hekbobo@gmail.com>
Co-authored-by: Ensteinjun <luoming_jun@126.com>
Co-authored-by: nanaya <nanaya100@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Eric-2369 <admin@eri.cx>
Co-authored-by: Yuri Filipe <yurifelipe64@hotmail.com>
Co-authored-by: durian <godogpt@gmail.com>

* add biochatter-server code (#9)

Co-authored-by: fengsh <shaohong.feng.78@gmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: fengsh <shaohong.feng.78@gmail.com>
Co-authored-by: Algorithm5838 <108630393+Algorithm5838@users.noreply.github.com>
Co-authored-by: Yifei Zhang <yidadaa@qq.com>
Co-authored-by: Eric R <hi@ericgit.me>
Co-authored-by: H0llyW00dzZ <priv8@btz.pm>
Co-authored-by: KeithHello <hongji.li@act1.co.jp>
Co-authored-by: Peter Dave Hello <hsu@peterdavehello.org>
Co-authored-by: GH Action - Upstream Sync <action@github.com>
Co-authored-by: Kong Gaowen <luckykong@users.noreply.github.com>
Co-authored-by: Jason O'Gray <1228915+ograycode@users.noreply.github.com>
Co-authored-by: H0llyW00dzZ <scure.apple@gmail.com>
Co-authored-by: mcheping520 <liuyiming53@outlook.com>
Co-authored-by: Surav Shrestha <surav.shrestha@outlook.com>
Co-authored-by: Jesse <43443357+jessegpt@users.noreply.github.com>
Co-authored-by: Ikko Eltociear Ashimine <eltociear@gmail.com>
Co-authored-by: 安忆 <i@anyi.in>
Co-authored-by: bob <hekbobo@gmail.com>
Co-authored-by: Ensteinjun <luoming_jun@126.com>
Co-authored-by: nanaya <nanaya100@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Eric-2369 <admin@eri.cx>
Co-authored-by: Yuri Filipe <yurifelipe64@hotmail.com>
Co-authored-by: durian <godogpt@gmail.com>
abrahamgreyson pushed a commit to abrahamgreyson/gpt-web that referenced this pull request Jan 12, 2024
spongeBor pushed a commit to spongeBor/ChatGPT-Next-Web that referenced this pull request Jan 18, 2024
lovelytan pushed a commit to lovelytan/ChatGPT-Next-Web that referenced this pull request Feb 1, 2024
gaogao1030 pushed a commit to gaogao1030/ChatGPT-Next-Web that referenced this pull request May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.