mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-03-18 04:25:14 +08:00
feat: support gpt-5.4
This commit is contained in:
@@ -98,7 +98,7 @@ bash <(curl -sS https://cdn.link-ai.tech/code/cow/run.sh)
|
|||||||
|
|
||||||
项目支持国内外主流厂商的模型接口,可选模型及配置说明参考:[模型说明](#模型说明)。
|
项目支持国内外主流厂商的模型接口,可选模型及配置说明参考:[模型说明](#模型说明)。
|
||||||
|
|
||||||
> 注:Agent模式下推荐使用以下模型,可根据效果及成本综合选择:MiniMax-M2.5、glm-5、kimi-k2.5、qwen3.5-plus、claude-sonnet-4-6、gemini-3.1-pro-preview
|
> 注:Agent模式下推荐使用以下模型,可根据效果及成本综合选择:MiniMax-M2.5、glm-5、kimi-k2.5、qwen3.5-plus、claude-sonnet-4-6、gemini-3.1-pro-preview、gpt-5.4
|
||||||
|
|
||||||
同时支持使用 **LinkAI平台** 接口,可灵活切换 OpenAI、Claude、Gemini、DeepSeek、Qwen、Kimi 等多种常用模型,并支持知识库、工作流、插件等Agent能力,参考 [接口文档](https://docs.link-ai.tech/platform/api)。
|
同时支持使用 **LinkAI平台** 接口,可灵活切换 OpenAI、Claude、Gemini、DeepSeek、Qwen、Kimi 等多种常用模型,并支持知识库、工作流、插件等Agent能力,参考 [接口文档](https://docs.link-ai.tech/platform/api)。
|
||||||
|
|
||||||
@@ -279,14 +279,14 @@ volumes:
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"model": "gpt-4.1-mini",
|
"model": "gpt-5.4",
|
||||||
"open_ai_api_key": "YOUR_API_KEY",
|
"open_ai_api_key": "YOUR_API_KEY",
|
||||||
"open_ai_api_base": "https://api.openai.com/v1",
|
"open_ai_api_base": "https://api.openai.com/v1",
|
||||||
"bot_type": "chatGPT"
|
"bot_type": "chatGPT"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
- `model`: 与OpenAI接口的 [model参数](https://platform.openai.com/docs/models) 一致,支持包括 o系列、gpt-5.2、gpt-5.1、gpt-4.1等系列模型
|
- `model`: 与OpenAI接口的 [model参数](https://platform.openai.com/docs/models) 一致,支持包括 gpt-5.4、o系列、gpt-4.1等模型,Agent模式推荐使用 `gpt-5.4`
|
||||||
- `open_ai_api_base`: 如果需要接入第三方代理接口,可通过修改该参数进行接入
|
- `open_ai_api_base`: 如果需要接入第三方代理接口,可通过修改该参数进行接入
|
||||||
- `bot_type`: 使用OpenAI相关模型时无需填写。当使用第三方代理接口接入Claude等非OpenAI官方模型时,该参数设为 `chatGPT`
|
- `bot_type`: 使用OpenAI相关模型时无需填写。当使用第三方代理接口接入Claude等非OpenAI官方模型时,该参数设为 `chatGPT`
|
||||||
</details>
|
</details>
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ GPT_41_NANO = "gpt-4.1-nano"
|
|||||||
GPT_5 = "gpt-5"
|
GPT_5 = "gpt-5"
|
||||||
GPT_5_MINI = "gpt-5-mini"
|
GPT_5_MINI = "gpt-5-mini"
|
||||||
GPT_5_NANO = "gpt-5-nano"
|
GPT_5_NANO = "gpt-5-nano"
|
||||||
|
GPT_54 = "gpt-5.4" # GPT-5.4 - Agent recommended model
|
||||||
O1 = "o1-preview"
|
O1 = "o1-preview"
|
||||||
O1_MINI = "o1-mini"
|
O1_MINI = "o1-mini"
|
||||||
WHISPER_1 = "whisper-1"
|
WHISPER_1 = "whisper-1"
|
||||||
@@ -150,6 +151,7 @@ MODEL_LIST = [
|
|||||||
GPT_4o, GPT_4O_0806, GPT_4o_MINI,
|
GPT_4o, GPT_4O_0806, GPT_4o_MINI,
|
||||||
GPT_41, GPT_41_MINI, GPT_41_NANO,
|
GPT_41, GPT_41_MINI, GPT_41_NANO,
|
||||||
GPT_5, GPT_5_MINI, GPT_5_NANO,
|
GPT_5, GPT_5_MINI, GPT_5_NANO,
|
||||||
|
GPT_54,
|
||||||
O1, O1_MINI,
|
O1, O1_MINI,
|
||||||
|
|
||||||
# DeepSeek
|
# DeepSeek
|
||||||
|
|||||||
@@ -144,6 +144,7 @@ Agent模式推荐使用以下模型,可根据效果及成本综合选择:
|
|||||||
- **Qwen**: `qwen3.5-plus`
|
- **Qwen**: `qwen3.5-plus`
|
||||||
- **Claude**: `claude-sonnet-4-6`
|
- **Claude**: `claude-sonnet-4-6`
|
||||||
- **Gemini**: `gemini-3.1-pro-preview`
|
- **Gemini**: `gemini-3.1-pro-preview`
|
||||||
|
- **OpenAI**: `gpt-5.4`
|
||||||
|
|
||||||
详细模型配置方式参考 [README.md 模型说明](../README.md#模型说明)
|
详细模型配置方式参考 [README.md 模型说明](../README.md#模型说明)
|
||||||
|
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ Supports mainstream model providers. Recommended models for Agent mode:
|
|||||||
| Qwen | `qwen3.5-plus` |
|
| Qwen | `qwen3.5-plus` |
|
||||||
| Claude | `claude-sonnet-4-6` |
|
| Claude | `claude-sonnet-4-6` |
|
||||||
| Gemini | `gemini-3.1-pro-preview` |
|
| Gemini | `gemini-3.1-pro-preview` |
|
||||||
| OpenAI | `gpt-4.1` |
|
| OpenAI | `gpt-5.4` |
|
||||||
| DeepSeek | `deepseek-chat` |
|
| DeepSeek | `deepseek-chat` |
|
||||||
|
|
||||||
For detailed configuration of each model, see the [Models documentation](https://docs.cowagent.ai/en/models/index).
|
For detailed configuration of each model, see the [Models documentation](https://docs.cowagent.ai/en/models/index).
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ You can also use the [LinkAI](https://link-ai.tech) platform interface to flexib
|
|||||||
gemini-3.1-pro-preview and more
|
gemini-3.1-pro-preview and more
|
||||||
</Card>
|
</Card>
|
||||||
<Card title="OpenAI" href="/en/models/openai">
|
<Card title="OpenAI" href="/en/models/openai">
|
||||||
gpt-4.1, o-series and more
|
gpt-5.4, gpt-4.1, o-series and more
|
||||||
</Card>
|
</Card>
|
||||||
<Card title="DeepSeek" href="/en/models/deepseek">
|
<Card title="DeepSeek" href="/en/models/deepseek">
|
||||||
deepseek-chat, deepseek-reasoner
|
deepseek-chat, deepseek-reasoner
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ description: OpenAI model configuration
|
|||||||
|
|
||||||
| Parameter | Description |
|
| Parameter | Description |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| `model` | Matches the [model parameter](https://platform.openai.com/docs/models) of the OpenAI API. Supports o-series, gpt-5.2, gpt-5.1, gpt-4.1, etc. |
|
| `model` | Matches the [model parameter](https://platform.openai.com/docs/models) of the OpenAI API. Supports o-series, gpt-5.4, gpt-5 series, gpt-4.1, etc. Recommended for Agent mode: `gpt-5.4` |
|
||||||
| `open_ai_api_key` | Create at [OpenAI Platform](https://platform.openai.com/api-keys) |
|
| `open_ai_api_key` | Create at [OpenAI Platform](https://platform.openai.com/api-keys) |
|
||||||
| `open_ai_api_base` | Optional. Change to use third-party proxy |
|
| `open_ai_api_base` | Optional. Change to use third-party proxy |
|
||||||
| `bot_type` | Not required for official OpenAI models. Set to `chatGPT` when using Claude or other non-OpenAI models via proxy |
|
| `bot_type` | Not required for official OpenAI models. Set to `chatGPT` when using Claude or other non-OpenAI models via proxy |
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ CowAgent 支持国内外主流厂商的大语言模型,模型接口实现在
|
|||||||
gemini-3.1-pro-preview 等
|
gemini-3.1-pro-preview 等
|
||||||
</Card>
|
</Card>
|
||||||
<Card title="OpenAI" href="/models/openai">
|
<Card title="OpenAI" href="/models/openai">
|
||||||
gpt-4.1、o 系列等
|
gpt-5.4、gpt-4.1、o 系列等
|
||||||
</Card>
|
</Card>
|
||||||
<Card title="DeepSeek" href="/models/deepseek">
|
<Card title="DeepSeek" href="/models/deepseek">
|
||||||
deepseek-chat、deepseek-reasoner
|
deepseek-chat、deepseek-reasoner
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ description: OpenAI 模型配置
|
|||||||
|
|
||||||
| 参数 | 说明 |
|
| 参数 | 说明 |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| `model` | 与 OpenAI 接口的 [model 参数](https://platform.openai.com/docs/models) 一致,支持 o 系列、gpt-5.2、gpt-5.1、gpt-4.1 等 |
|
| `model` | 与 OpenAI 接口的 [model 参数](https://platform.openai.com/docs/models) 一致,支持 o 系列、gpt-5.4、gpt-5 系列、gpt-4.1 等,Agent 模式推荐使用 `gpt-5.4` |
|
||||||
| `open_ai_api_key` | 在 [OpenAI 平台](https://platform.openai.com/api-keys) 创建 |
|
| `open_ai_api_key` | 在 [OpenAI 平台](https://platform.openai.com/api-keys) 创建 |
|
||||||
| `open_ai_api_base` | 可选,修改可接入第三方代理接口 |
|
| `open_ai_api_base` | 可选,修改可接入第三方代理接口 |
|
||||||
| `bot_type` | 使用 OpenAI 官方模型时无需填写。当通过代理接口使用 Claude 等非 OpenAI 模型时,设为 `chatGPT` |
|
| `bot_type` | 使用 OpenAI 官方模型时无需填写。当通过代理接口使用 Claude 等非 OpenAI 模型时,设为 `chatGPT` |
|
||||||
|
|||||||
6
run.sh
6
run.sh
@@ -277,7 +277,7 @@ select_model() {
|
|||||||
echo -e "${YELLOW}5) Qwen (qwen3.5-plus, qwen3-max, qwq-plus, etc.)${NC}"
|
echo -e "${YELLOW}5) Qwen (qwen3.5-plus, qwen3-max, qwq-plus, etc.)${NC}"
|
||||||
echo -e "${YELLOW}6) Claude (claude-sonnet-4-6, claude-opus-4-6, etc.)${NC}"
|
echo -e "${YELLOW}6) Claude (claude-sonnet-4-6, claude-opus-4-6, etc.)${NC}"
|
||||||
echo -e "${YELLOW}7) Gemini (gemini-3.1-pro-preview, gemini-3-flash-preview, etc.)${NC}"
|
echo -e "${YELLOW}7) Gemini (gemini-3.1-pro-preview, gemini-3-flash-preview, etc.)${NC}"
|
||||||
echo -e "${YELLOW}8) OpenAI GPT (gpt-5.2, gpt-4.1, etc.)${NC}"
|
echo -e "${YELLOW}8) OpenAI GPT (gpt-5.4, gpt-5.2, gpt-4.1, etc.)${NC}"
|
||||||
echo -e "${YELLOW}9) LinkAI (access multiple models via one API)${NC}"
|
echo -e "${YELLOW}9) LinkAI (access multiple models via one API)${NC}"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
@@ -378,8 +378,8 @@ configure_model() {
|
|||||||
# OpenAI
|
# OpenAI
|
||||||
echo -e "${GREEN}Configuring OpenAI GPT...${NC}"
|
echo -e "${GREEN}Configuring OpenAI GPT...${NC}"
|
||||||
read -p "Enter OpenAI API Key: " openai_key
|
read -p "Enter OpenAI API Key: " openai_key
|
||||||
read -p "Enter model name [press Enter for default: gpt-4.1]: " model_name
|
read -p "Enter model name [press Enter for default: gpt-5.4]: " model_name
|
||||||
model_name=${model_name:-gpt-4.1}
|
model_name=${model_name:-gpt-5.4}
|
||||||
read -p "Enter API Base URL [press Enter for default: https://api.openai.com/v1]: " api_base
|
read -p "Enter API Base URL [press Enter for default: https://api.openai.com/v1]: " api_base
|
||||||
api_base=${api_base:-https://api.openai.com/v1}
|
api_base=${api_base:-https://api.openai.com/v1}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user