This is an automated email from the ASF dual-hosted git repository. gongchao pushed a commit to branch update-ai-with in repository https://gitbox.apache.org/repos/asf/hertzbeat.git
commit 7846f3276dabbfbf6ae4488e2cc7df1b7b25e7e1 Author: tomsun28 <[email protected]> AuthorDate: Fri Oct 31 00:49:49 2025 +0800 refactor Signed-off-by: tomsun28 <[email protected]> --- home/docs/help/ai_config.md | 81 ---------------------- .../current/help/ai_config.md | 81 ---------------------- 2 files changed, 162 deletions(-) diff --git a/home/docs/help/ai_config.md b/home/docs/help/ai_config.md deleted file mode 100644 index fe2e79f23..000000000 --- a/home/docs/help/ai_config.md +++ /dev/null @@ -1,81 +0,0 @@ ---- -id: ai_config -title: AI QuickStart -sidebar_label: AI QuickStart -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> | - -#### Alibaba AI - -| Name of the parameter | Example | Link | -|-----------------------|----------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------| -| type | alibabaAi (must be exactly the same as example) | | -| model | qwen-turbo、qwen-plus、qwen-max、qwen-max-0428、qwen-max-0403、qwen-max-0107、qwen-max-longcontext | <https://help.aliyun.com/zh/dashscope/developer-reference/model-introduction?spm=a2c4g.11186623.0.0.4e0246c1RQFKMH> | -| api-key | xxxxxxxxxxx | <https://help.aliyun.com/zh/dashscope/developer-reference/activate-dashscope-and-create-an-api-key?spm=a2c4g.11186623.0.i10> | - -#### Kimi AI - -| Name of the parameter | Example | Link | -|-----------------------|-------------------------------------------------|-----------------------------------------------| -| type | kimiAi (must be exactly the same as example) | | -| model | moonshot-v1-8k、moonshot-v1-32k、moonshot-v1-128k | | -| api-key | xxxxxxxxxxx | <https://platform.moonshot.cn/console/api-keys> | - -#### sparkDesk AI - -QuickStart: <https://www.xfyun.cn/doc/platform/quickguide.html> - -| Name of the parameter | Example | Link | -|-----------------------|--------------------------------------------------|---------------------------------------| -| type | sparkDesk (must be exactly the same as example) | | -| model | general、generalv2、generalv3、generalv3.5、4.0Ultra | | -| api-key | xxxxxxxxxxx | <https://console.xfyun.cn/services/cbm> | -| api-secret | xxxxxxxxxxx | <https://console.xfyun.cn/services/cbm> | - -| sparkDesk version | model | -|-------------------|-------------| -| Spark4.0 Ultra | 4.0Ultra | -| Spark Max | generalv3.5 | -| Spark Pro | generalv3 | -| Spark V2.0 | generalv2 | -| Spark Lite(free) | general | - -#### Ollama AI - -QuickStart: <https://github.com/ollama/ollama/tree/main/docs> - -| Name of the parameter | Example | Link | -|-----------------------|-------------------------------------------------|-------------------------------| -| type | ollama (must be exactly the same as example) | | -| model | deepseek-r1:latest、qwen3:latest、llama4:16x17b | <https://ollama.com/search> | -| api-url | <http://127.0.0.1:11434/v1/chat/completions> | | - -#### OpenRouter - -QuickStart: <https://openrouter.ai/docs/quickstart> - -| Name of the parameter | Example | Link | -|-----------------------|------------------------------------------------|-----------------------------------------| -| type | openRouter (must be exactly the same as example) | | -| model | openai/gpt-4o, anthropic/claude-sonnet-4 | <https://openrouter.ai/models> | -| api-key | xxxxxxxxxxx | <https://openrouter.ai/settings/provisioning-keys> | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/ai_config.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/ai_config.md deleted file mode 100644 index ed59d6f76..000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/ai_config.md +++ /dev/null @@ -1,81 +0,0 @@ ---- -id: ai_config -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> | - -#### 阿里巴巴AI - -| 参数名称 | 示例 | 链接 | -|---------|----------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------| -| type | alibabaAi(必须和示例完全相同) | 无 | -| model | qwen-turbo、qwen-plus、qwen-max、qwen-max-0428、qwen-max-0403、qwen-max-0107、qwen-max-longcontext | <https://help.aliyun.com/zh/dashscope/developer-reference/model-introduction?spm=a2c4g.11186623.0.0.4e0246c1RQFKMH> | -| api-key | xxxxxxxxxxx | <https://help.aliyun.com/zh/dashscope/developer-reference/activate-dashscope-and-create-an-api-key?spm=a2c4g.11186623.0.i10> | - -#### 月之暗面AI - -| 参数名称 | 示例 | 链接 | -|---------|-------------------------------------------------|-----------------------------------------------| -| type | kimiAi(必须和示例完全相同) | 无 | -| model | moonshot-v1-8k、moonshot-v1-32k、moonshot-v1-128k | 无 | -| api-key | xxxxxxxxxxx | <https://platform.moonshot.cn/console/api-keys> | - -#### 科大讯飞AI - -快速入门:<https://www.xfyun.cn/doc/platform/quickguide.html> - -| 参数名称 | 示例 | 链接 | -|------------|--------------------------------------------------|---------------------------------------| -| type | sparkDesk (must be exactly the same as example) | | -| model | general、generalv2、generalv3、generalv3.5、4.0Ultra | | -| api-key | xxxxxxxxxxx | <https://console.xfyun.cn/services/cbm> | -| api-secret | xxxxxxxxxxx | <https://console.xfyun.cn/services/cbm> | - -| 模型版本 | 模型类型(application.yml的model参数) | -|-----------------|-------------------------------| -| Spark4.0 Ultra | 4.0Ultra | -| Spark Max | generalv3.5 | -| Spark Pro | generalv3 | -| Spark V2.0 | generalv2 | -| Spark Lite(免费版) | general | - -#### Ollama AI - -快速入门: <https://github.com/ollama/ollama/tree/main/docs> - -| 参数名称 | 示例 | 链接 | -|-----------------------|--------------------------------------------------|---------------------------------------| -| type | ollama (必须和示例完全相同) | | -| model | deepseek-r1:latest、qwen3:latest、llama4:16x17b | <https://ollama.com/search> | -| api-url | <http://127.0.0.1:11434/v1/chat/completions> | | - -#### OpenRouter - -快速入门: <https://openrouter.ai/docs/quickstart> - -| 参数名称 | 示例 | 链接 | -|---------|------------------------------------------|----------------------------------------------------| -| type | openRouter (必须和示例完全相同) | | -| model | openai/gpt-4o, anthropic/claude-sonnet-4 | <https://openrouter.ai/models> | -| api-key | xxxxxxxxxxx | <https://openrouter.ai/settings/provisioning-keys> | --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
