Skip to content

Commit

Permalink
💄 style: Update the gpt-4-1106-preview model to gpt-4-0125-preview (l…
Browse files Browse the repository at this point in the history
  • Loading branch information
cklogic authored Feb 2, 2024
1 parent 5d9cd73 commit fe623e1
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion docs/Deployment/Docker-Deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ First, create a `lobe.env` configuration file with various environment variables
OPENAI_API_KEY=sk-xxxx
OPENAI_PROXY_URL=https://api-proxy.com/v1
ACCESS_CODE=arthals2333
CUSTOM_MODELS=-gpt-4,-gpt-4-32k,-gpt-3.5-turbo-16k,gpt-3.5-turbo-1106=gpt-3.5-turbo-16k,gpt-4-1106-preview=gpt-4-turbo,gpt-4-vision-preview=gpt-4-vision
CUSTOM_MODELS=-gpt-4,-gpt-4-32k,-gpt-3.5-turbo-16k,gpt-3.5-turbo-1106=gpt-3.5-turbo-16k,gpt-4-0125-preview=gpt-4-turbo,gpt-4-vision-preview=gpt-4-vision
```

Then, you can use the following script to automatically update:
Expand Down
2 changes: 1 addition & 1 deletion docs/Deployment/Docker-Deployment.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ $ docker run -d -p 3210:3210 \
OPENAI_API_KEY=sk-xxxx
OPENAI_PROXY_URL=https://api-proxy.com/v1
ACCESS_CODE=arthals2333
CUSTOM_MODELS=-gpt-4,-gpt-4-32k,-gpt-3.5-turbo-16k,gpt-3.5-turbo-1106=gpt-3.5-turbo-16k,gpt-4-1106-preview=gpt-4-turbo,gpt-4-vision-preview=gpt-4-vision
CUSTOM_MODELS=-gpt-4,-gpt-4-32k,-gpt-3.5-turbo-16k,gpt-3.5-turbo-1106=gpt-3.5-turbo-16k,gpt-4-0125-preview=gpt-4-turbo,gpt-4-vision-preview=gpt-4-vision
```

然后,你可以使用以下脚本来自动更新:
Expand Down
4 changes: 2 additions & 2 deletions docs/Deployment/Environment-Variable.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ LobeChat provides additional configuration options during deployment, which can
- Type: Optional
- Description: Used to control the model list. Use `+` to add a model, `-` to hide a model, and `model_name=display_name` to customize the display name of a model, separated by commas.
- Default: `-`
- Example: `+qwen-7b-chat,+glm-6b,-gpt-3.5-turbo,gpt-4-1106-preview=gpt-4-turbo`
- Example: `+qwen-7b-chat,+glm-6b,-gpt-3.5-turbo,gpt-4-0125-preview=gpt-4-turbo`

The above example adds `qwen-7b-chat` and `glm-6b` to the model list, removes `gpt-3.5-turbo` from the list, and displays the model name `gpt-4-1106-preview` as `gpt-4-turbo`. If you want to disable all models first and then enable specific models, you can use `-all,+gpt-3.5-turbo`, which means only `gpt-3.5-turbo` will be enabled.
The above example adds `qwen-7b-chat` and `glm-6b` to the model list, removes `gpt-3.5-turbo` from the list, and displays the model name `gpt-4-0125-preview` as `gpt-4-turbo`. If you want to disable all models first and then enable specific models, you can use `-all,+gpt-3.5-turbo`, which means only `gpt-3.5-turbo` will be enabled.

## OpenAI

Expand Down
4 changes: 2 additions & 2 deletions docs/Deployment/Environment-Variable.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ LobeChat 在部署时提供了一些额外的配置项,使用环境变量进
- 类型:可选
- 描述:用来控制模型列表,使用 `+` 增加一个模型,使用 `-` 来隐藏一个模型,使用 `模型名=展示名` 来自定义模型的展示名,用英文逗号隔开。
- 默认值:`-`
- 示例:`+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-0125-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`
上面示例表示增加 `qwen-7b-chat``glm-6b` 到模型列表,而从列表中删除 `gpt-3.5-turbo`,并将 `gpt-4-0125-preview` 模型名字展示为 `gpt-4-turbo`。如果你想先禁用所有模型,再启用指定模型,可以使用 `-all,+gpt-3.5-turbo`,则表示仅启用 `gpt-3.5-turbo`

## OpenAI

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"gpt-3.5-turbo-16k",
"gpt-4",
"gpt-4-32k",
"gpt-4-1106-preview",
"gpt-4-0125-preview",
"gpt-4-vision-preview"
],
"customModelName": "+glm-4,+glm-4v",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"gpt-3.5-turbo-16k",
"gpt-4",
"gpt-4-32k",
"gpt-4-1106-preview",
"gpt-4-0125-preview",
"gpt-4-vision-preview"
],
"customModelName": "+glm-4,+glm-4v",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ exports[`modelProviderSelectors > CUSTOM_MODELS > custom deletion, addition, and
},
{
"displayName": "gpt-4-32k",
"name": "gpt-4-1106-preview",
"name": "gpt-4-0125-preview",
},
]
`;
Expand Down Expand Up @@ -45,7 +45,7 @@ exports[`modelProviderSelectors > CUSTOM_MODELS > duplicate naming model 1`] = `
},
{
"displayName": "gpt-4-32k",
"name": "gpt-4-1106-preview",
"name": "gpt-4-0125-preview",
},
]
`;
Expand Down Expand Up @@ -73,8 +73,8 @@ exports[`modelProviderSelectors > CUSTOM_MODELS > only add the model 1`] = `
"name": "gpt-4-32k",
},
{
"displayName": "gpt-4-1106-preview",
"name": "gpt-4-1106-preview",
"displayName": "gpt-4-0125-preview",
"name": "gpt-4-0125-preview",
},
{
"displayName": "gpt-4-vision-preview",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('modelProviderSelectors', () => {
const s = {
serverConfig: {
customModelName:
'-all,+llama,+claude-2,-gpt-3.5-turbo,gpt-4-1106-preview=gpt-4-turbo,gpt-4-1106-preview=gpt-4-32k',
'-all,+llama,+claude-2,-gpt-3.5-turbo,gpt-4-0125-preview=gpt-4-turbo,gpt-4-0125-preview=gpt-4-32k',
},
settings: {
languageModel: {
Expand All @@ -27,7 +27,7 @@ describe('modelProviderSelectors', () => {
settings: {
languageModel: {
openAI: {
customModelName: 'gpt-4-1106-preview=gpt-4-turbo,gpt-4-1106-preview=gpt-4-32k',
customModelName: 'gpt-4-0125-preview=gpt-4-turbo,gpt-4-0125-preview=gpt-4-32k',
},
},
},
Expand Down Expand Up @@ -70,8 +70,8 @@ describe('modelProviderSelectors', () => {
name: 'gpt-4-32k',
},
{
displayName: 'gpt-4-1106-preview',
name: 'gpt-4-1106-preview',
displayName: 'gpt-4-0125-preview',
name: 'gpt-4-0125-preview',
},
{
displayName: 'gpt-4-vision-preview',
Expand Down
2 changes: 1 addition & 1 deletion src/types/llm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export enum LanguageModel {
*/
GPT4 = 'gpt-4',
GPT4_32K = 'gpt-4-32k',
GPT4_PREVIEW = 'gpt-4-1106-preview',
GPT4_PREVIEW = 'gpt-4-0125-preview',
GPT4_VISION_PREVIEW = 'gpt-4-vision-preview',
}

Expand Down

0 comments on commit fe623e1

Please sign in to comment.