docs: make English the default docs language and fix link paths

This commit is contained in:
zhayujie
2026-05-31 17:52:22 +08:00
parent 126649f70f
commit 7bf4ef3d05
231 changed files with 8999 additions and 8974 deletions

56
docs/zh/models/glm.mdx Normal file
View File

@@ -0,0 +1,56 @@
---
title: 智谱 GLM
description: 智谱 AI GLM 模型配置(文本 / 图像理解 / 语音识别 / 向量)
---
智谱 AI 支持文本对话、图像理解、语音识别ASR和向量Embedding一份 `zhipu_ai_api_key` 即可启用全部能力。
<Tip>
通过 Web 控制台的「模型管理」页面可一站式配置以下全部能力,无需手动改配置文件。
</Tip>
## 文本对话
```json
{
"model": "glm-5.1",
"zhipu_ai_api_key": "YOUR_API_KEY"
}
```
| 参数 | 说明 |
| --- | --- |
| `model` | 可填 `glm-5.1`、`glm-5-turbo`、`glm-5`、`glm-4.7`、`glm-4-plus`、`glm-4-flash`、`glm-4-air` 等,参考 [模型编码](https://bigmodel.cn/dev/api/normal-model/glm-4) |
| `zhipu_ai_api_key` | 在 [智谱 AI 控制台](https://www.bigmodel.cn/usercenter/proj-mgmt/apikeys) 创建 |
| `zhipu_ai_api_base` | 可选,默认为 `https://open.bigmodel.cn/api/paas/v4` |
## 图像理解
智谱 chat 系列模型(`glm-5.1`、`glm-5-turbo` 等)不支持视觉,视觉调用统一路由到 `glm-5v-turbo`。配置 `zhipu_ai_api_key` 后 Agent 的 Vision 工具会自动使用该模型,无需在配置文件中显式指定。
## 语音识别
```json
{
"voice_to_text": "zhipu",
"voice_to_text_model": "glm-asr-2512"
}
```
| 参数 | 说明 |
| --- | --- |
| `voice_to_text` | 设为 `zhipu` 启用智谱 ASR |
| `voice_to_text_model` | 可选,默认 `glm-asr-2512` |
凭证自动复用 `zhipu_ai_api_key`。语音文件建议小于 25MB超大文件可能被服务端拒绝。
## 向量
```json
{
"embedding_provider": "zhipu",
"embedding_model": "embedding-3"
}
```
可选模型:`embedding-3`、`embedding-2`。修改 embedding 后需执行 `/memory rebuild-index` 命令重建索引。