docs(models): add ernie-5.0

This commit is contained in:
zhayujie
2026-05-06 12:15:14 +08:00
parent 530fc20596
commit c322c0e3a5
19 changed files with 343 additions and 44 deletions

View File

@@ -1,5 +1,5 @@
---
title: 百度千帆 / ERNIE
title: 百度千帆
description: 百度千帆 ERNIE 模型配置
---
@@ -7,7 +7,7 @@ description: 百度千帆 ERNIE 模型配置
```json
{
"model": "ernie-4.5-turbo-128k",
"model": "ernie-5.0",
"qianfan_api_key": "",
"qianfan_api_base": "https://qianfan.baidubce.com/v2"
}
@@ -15,7 +15,7 @@ description: 百度千帆 ERNIE 模型配置
| 参数 | 说明 |
| --- | --- |
| `model` | 推荐使用 `ernie-4.5-turbo-128k`;也可使用 `ernie-4.5-turbo-32k`、`ernie-x1-turbo-32k` |
| `model` | 默认推荐使用 `ernie-5.0`;也可使用 `ernie-4.5-turbo-128k``ernie-4.5-turbo-32k`、`ernie-x1-turbo-32k` |
| `qianfan_api_key` | 千帆 API Key格式通常以 `bce-v3/` 开头 |
| `qianfan_api_base` | 可选,默认为 `https://qianfan.baidubce.com/v2` |
@@ -23,7 +23,8 @@ description: 百度千帆 ERNIE 模型配置
| 模型 | 适用场景 |
| --- | --- |
| `ernie-4.5-turbo-128k` | 默认推荐,适合长上下文和通用对话 |
| `ernie-5.0` | 默认推荐,文心新一代旗舰模型,综合能力最强 |
| `ernie-4.5-turbo-128k` | 长上下文和通用对话 |
| `ernie-4.5-turbo-32k` | 通用对话,成本和上下文更均衡 |
| `ernie-x1-turbo-32k` | 需要更强推理能力的任务 |
@@ -31,7 +32,7 @@ description: 百度千帆 ERNIE 模型配置
```json
{
"model": "ernie-4.5-turbo-128k",
"model": "ernie-5.0",
"bot_type": "openai",
"open_ai_api_key": "",
"open_ai_api_base": "https://qianfan.baidubce.com/v2"