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

Support a way to define default model by adding DEFAULT_MODEL env. #4545

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

jalr4ever
Copy link
Contributor

A new optional env DEFAULT_MODEL is supported now.

For example:

docker run --rm  -p 63000:3000 \
-e OPENAI_API_KEY=sk-jKxxxxxxxxxxxxxxxxxxxxxxxxx \
-e CODE=jalr4ever \
-e BASE_URL=https://api.proxychat.com.cn \
-e HIDE_USER_API_KEY=1 \
-e CUSTOM_MODELS=-all,+gpt-3.5-turbo-0613,+gpt-3.5-turbo-0301,+gpt-3.5-turbo-16k,+gpt-4-turbo,+gpt-4-0125-preview,+gemini-pro \
-e DEFAULT_MODEL=gpt-4-turbo \
-e GOOGLE_API_KEY=AIzaaaaaaaaaaaaaaaaaaaa \
-e GOOGLE_URL=https://mellifluous-aaaaaaaaaa.app \
jalr4ever/chatgpt-next-web:v2.11.3 

The feature version is already published in docker hub, you can just simply run docker pull jalr4ever/chatgpt-next-web:v2.11.3 for usage preview.

Copy link

vercel bot commented Apr 19, 2024

@jalr4ever is attempting to deploy a commit to the NextChat Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

Your build has completed!

Preview deployment

@Dean-YZG
Copy link
Contributor

Thanks to your work, we have a plan to refactor relationship between the model entity and providers soon, after that, we will support the function of model-customing.

@Dean-YZG Dean-YZG merged commit 9aec3b7 into ChatGPTNextWeb:main Apr 25, 2024
1 of 2 checks passed
@Dean-YZG
Copy link
Contributor

Thanks a lot for your constributions

gaogao1030 pushed a commit to gaogao1030/ChatGPT-Next-Web that referenced this pull request May 16, 2024
…del-env

Support a way to define default model by adding DEFAULT_MODEL env.
ji-jinlong added a commit to ji-jinlong/ChatGPT-Next-Web that referenced this pull request Jul 3, 2024
更改默认模型, 很久之前就有大佬支持了, 但更多人只会看readme, readme没有的就以为不支持(包括我).

ChatGPTNextWeb#4545
ji-jinlong added a commit to ji-jinlong/ChatGPT-Next-Web that referenced this pull request Jul 3, 2024
Change default model, it has been supported by experts long ago, but more people only read the readme. If it's not in the readme, they assume it's not supported (including me).

ChatGPTNextWeb#4545
@ji-jinlong ji-jinlong mentioned this pull request Jul 3, 2024
lloydzhou pushed a commit that referenced this pull request Jul 3, 2024
* README_CN.md 添加 DEFAULT_MODEL 的说明

更改默认模型, 很久之前就有大佬支持了, 但更多人只会看readme, readme没有的就以为不支持(包括我).

#4545

* Update README.md

Change default model, it has been supported by experts long ago, but more people only read the readme. If it's not in the readme, they assume it's not supported (including me).

#4545

* Update README.md

ch to en

* en2cn

* 保持位置和readme.md一致
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.

None yet

2 participants