mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-03-01 16:29:26 +08:00
28 lines
676 B
Plaintext
28 lines
676 B
Plaintext
---
|
|
title: GLM (Zhipu AI)
|
|
description: Zhipu AI GLM model configuration
|
|
---
|
|
|
|
```json
|
|
{
|
|
"model": "glm-5",
|
|
"zhipu_ai_api_key": "YOUR_API_KEY"
|
|
}
|
|
```
|
|
|
|
| Parameter | Description |
|
|
| --- | --- |
|
|
| `model` | Options include `glm-5`, `glm-4.7`, `glm-4-plus`, `glm-4-flash`, `glm-4-air`, etc. See [model codes](https://bigmodel.cn/dev/api/normal-model/glm-4) |
|
|
| `zhipu_ai_api_key` | Create at [Zhipu AI Console](https://www.bigmodel.cn/usercenter/proj-mgmt/apikeys) |
|
|
|
|
OpenAI-compatible configuration is also supported:
|
|
|
|
```json
|
|
{
|
|
"bot_type": "chatGPT",
|
|
"model": "glm-5",
|
|
"open_ai_api_base": "https://open.bigmodel.cn/api/paas/v4",
|
|
"open_ai_api_key": "YOUR_API_KEY"
|
|
}
|
|
```
|