Skip to content

Commit

Permalink
Merge branch 'master' into patch-15
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsun28 authored Jun 25, 2024
2 parents c56a95e + e1cda50 commit d1ea259
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 0 deletions.
30 changes: 30 additions & 0 deletions home/docs/help/ai_config.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
id: aiConfig
title: AI QuickStart
sidebar_label: AI QuickStartr
keywords: [AI]
---

> The dialogue with artificial intelligence is achieved by configuring aiConfig in the application.yml file
### Configuration parameter description

| Name of the parameter | Parameter help description |
|-----------------------|------------------------------|
| type | Choose a large AI model (such as Zhipu, Tongyi thousand questions...)|
| model | Select the model, which defaults to GLM-4 |
| api-key | Gets the api_key, without which you cannot talk to the large model |

### Large model options and configuration details

#### ZhiPu AI

| Name of the parameter | Example | Link |
|--------------|-----------------------------------------------------|---------------------------------------------------------------|
| type | zhiPu (must be exactly the same as example) | |
| model | glm-4-0520、glm-4 、glm-4-air、glm-4-airx、 glm-4-flash | |
| api-key | xxxxx.xxxxxx | https://open.bigmodel.cn/login?redirect=%2Fusercenter%2Fapikeys |




9 changes: 9 additions & 0 deletions home/i18n/en/docusaurus-plugin-content-docs/current.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
"message": "SSH Protocol",
"description": "The label for category ssh in sidebar docs"
},

"sidebar.docs.category.telnet": {
"message": "TELNET Protocol",
"description": "The label for category telnet in sidebar docs"
},
"sidebar.docs.category.help": {
"message": "Help",
"description": "The label for category help in sidebar docs"
Expand Down Expand Up @@ -118,5 +123,9 @@
"sidebar.docs.category.llm": {
"message": "Ai LLM Monitor",
"description": "The label for category llm in sidebar docs"
},
"sidebar.docs.category.aiConfig": {
"message": "Ai LLM Config",
"description": "The label for category aiConfig in sidebar docs"
}
}
8 changes: 8 additions & 0 deletions home/i18n/zh-cn/docusaurus-plugin-content-docs/current.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
"message": "SSH协议",
"description": "The label for category ssh in sidebar docs"
},
"sidebar.docs.category.telnet": {
"message": "TELNET协议",
"description": "The label for category telnet in sidebar docs"
},
"sidebar.docs.category.help": {
"message": "帮助文档",
"description": "The label for category help in sidebar docs"
Expand Down Expand Up @@ -122,5 +126,9 @@
"sidebar.docs.category.llm": {
"message": "Ai大模型监控",
"description": "The label for category llm in sidebar docs"
},
"sidebar.docs.category.aiConfig": {
"message": "Ai大模型配置",
"description": "The label for category aiConfig in sidebar docs"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
id: aiConfig
title: AI 快速入门
sidebar_label: AI 快速入门
keywords: [人工智能 AI]
---

> 通过配置application.yml文件里面的aiConfig实现与人工智能的对话
### 配置参数说明

| 参数名称 | 参数帮助描述 |
| ----------- |------------------------------|
| type | 选择AI大模型(如智普、通义千问...) |
| model | 选择模型,默认为GLM-4 |
| api-key | 获取api_key,如果没有该配置,无法与大模型进行对话 |

### 大模型选项与配置详解

#### 智普AI

| 参数名称 | 示例 | 链接 |
|--------------|-----------------------------------------------------|----|
| type | zhiPu(必须和示例完全相同) ||
| model | glm-4-0520、glm-4 、glm-4-air、glm-4-airx、 glm-4-flash ||
| api-key | xxxxx.xxxxxx | https://open.bigmodel.cn/login?redirect=%2Fusercenter%2Fapikeys |




7 changes: 7 additions & 0 deletions home/sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,13 @@
"help/openai"
]
},
{
"type": "category",
"label": "aiConfig",
"items": [
"help/aiConfig"
]
},
{
"type": "category",
"label": "custom",
Expand Down

0 comments on commit d1ea259

Please sign in to comment.