Skip to content

Commit 06579bf

Browse files
authored
Merge pull request #11 from yinxulai/add_new_models
feat: add new AI models and update configurations
2 parents 8cfc262 + f8018cc commit 06579bf

File tree

11 files changed

+146
-8
lines changed

11 files changed

+146
-8
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,15 @@ jobs:
1818
curl -L -o /tmp/dify-cli/dify-plugin-linux-amd64 https://github.com/langgenius/dify-plugin-daemon/releases/download/0.2.0/dify-plugin-linux-amd64
1919
chmod +x /tmp/dify-cli/dify-plugin-linux-amd64
2020
21+
- name: Prepare plugin files
22+
run: |
23+
mkdir -p /tmp/plugin-build
24+
# 复制需要的文件,排除 .git、.github 等不需要的目录
25+
rsync -av --exclude='.git' --exclude='.github' . /tmp/plugin-build/
26+
2127
- name: Package plugin
2228
run: |
23-
/tmp/dify-cli/dify-plugin-linux-amd64 plugin package -o qiniu.difypkg .
29+
/tmp/dify-cli/dify-plugin-linux-amd64 plugin package -o qiniu.difypkg /tmp/plugin-build
2430
2531
- name: Upload package to release
2632
uses: actions/upload-release-asset@v1

.github/workflows/runnable.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Runnable
2+
3+
on:
4+
push:
5+
branches: [ main, develop ]
6+
pull_request:
7+
branches: [ main, develop ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.11", "3.12"]
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install -r requirements.txt
28+
29+
- name: Test plugin runs without errors
30+
run: |
31+
timeout 10s python -m main || [ $? -eq 124 ]

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
支持多种先进的 AI 大语言模型:
1414

15+
- **OpenAI 开源系列**:GPT-OSS-120b、GPT-OSS-20b
1516
- **DeepSeek 系列**:deepseek-r1、deepseek-v3
1617
- **GLM 系列**:GLM-4.5、GLM-4.5-Air
1718
- **Kimi 系列**:Kimi-K2

manifest.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ author: qiniu
33
icon: icon_s_en.svg
44
created_at: '2025-07-31T00:13:50.29298939-04:00'
55
description:
6-
en_US: Official Qiniu Cloud Dify plugin providing comprehensive AI inference services and cloud storage management. Supports multiple LLM models including deepseek-r1, deepseek-v3, GLM-4.5, Kimi-K2, Qwen series, and offers complete file management capabilities such as file upload, bucket operations, and content retrieval.
7-
zh_Hans: 七牛云官方 Dify 插件,提供全面的 AI 推理服务和云存储管理功能。支持 deepseek-r1、deepseek-v3、GLM-4.5、Kimi-K2、Qwen 系列等多种大语言模型,并提供完整的文件管理能力,包括文件上传、存储空间操作和内容获取等功能。
6+
en_US: Official Qiniu Cloud Dify plugin providing comprehensive AI inference services and cloud storage management. Supports multiple LLM models including GPT-OSS、deepseekGLMKimiQwen series, and offers complete file management capabilities such as file upload, bucket operations, and content retrieval.
7+
zh_Hans: 七牛云官方 Dify 插件,提供全面的 AI 推理服务和云存储管理功能。支持 GPT-OSS、deepseek、GLM、Kimi、Qwen 系列等多种大语言模型,并提供完整的文件管理能力,包括文件上传、存储空间操作和内容获取等功能。
88

99
label:
1010
en_US: Qiniu Cloud
@@ -37,4 +37,4 @@ resource:
3737
tool:
3838
enabled: true
3939
type: plugin
40-
version: 0.1.0
40+
version: 0.1.1

models/llm/_position.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
- gpt-oss-120b
2+
- gpt-oss-20b
3+
- glm-45
4+
- glm-45-air
15
- deepseek-v3
26
- deepseek-r1
37
- qwen-turbo
File renamed without changes.
File renamed without changes.

models/llm/gpt-oss-120b.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
model: gpt-oss-120b
2+
label:
3+
zh_Hans: gpt-oss-120b
4+
en_US: gpt-oss-120b
5+
model_type: llm
6+
features:
7+
- tool-call
8+
- agent-thought
9+
- multi-tool-call
10+
- stream-tool-call
11+
model_properties:
12+
mode: chat
13+
context_size: 131000
14+
parameter_rules:
15+
- name: temperature
16+
use_template: temperature
17+
- name: max_tokens
18+
use_template: max_tokens
19+
type: int
20+
default: 512
21+
min: 1
22+
max: 8192
23+
help:
24+
zh_Hans: 指定生成结果长度的上限。如果生成结果截断,可以调大该参数。
25+
en_US: Specifies the upper limit on the length of generated results. If the generated results are truncated, you can increase this parameter.
26+
- name: top_p
27+
use_template: top_p
28+
- name: top_k
29+
label:
30+
zh_Hans: 取样数量
31+
en_US: Top k
32+
type: int
33+
help:
34+
zh_Hans: 仅从每个后续标记的前 K 个选项中采样。
35+
en_US: Only sample from the top K options for each subsequent token.
36+
required: false
37+
- name: response_format
38+
label:
39+
zh_Hans: 回复格式
40+
en_US: Response Format
41+
type: string
42+
help:
43+
zh_Hans: 指定模型必须输出的格式
44+
en_US: specifying the format that the model must output
45+
required: false
46+
options:
47+
- text
48+
- json_object

models/llm/gpt-oss-20b.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
model: gpt-oss-20b
2+
label:
3+
zh_Hans: gpt-oss-20b
4+
en_US: gpt-oss-20b
5+
model_type: llm
6+
features:
7+
- tool-call
8+
- agent-thought
9+
- multi-tool-call
10+
- stream-tool-call
11+
model_properties:
12+
mode: chat
13+
context_size: 131000
14+
parameter_rules:
15+
- name: temperature
16+
use_template: temperature
17+
- name: max_tokens
18+
use_template: max_tokens
19+
type: int
20+
default: 512
21+
min: 1
22+
max: 8192
23+
help:
24+
zh_Hans: 指定生成结果长度的上限。如果生成结果截断,可以调大该参数。
25+
en_US: Specifies the upper limit on the length of generated results. If the generated results are truncated, you can increase this parameter.
26+
- name: top_p
27+
use_template: top_p
28+
- name: top_k
29+
label:
30+
zh_Hans: 取样数量
31+
en_US: Top k
32+
type: int
33+
help:
34+
zh_Hans: 仅从每个后续标记的前 K 个选项中采样。
35+
en_US: Only sample from the top K options for each subsequent token.
36+
required: false
37+
- name: response_format
38+
label:
39+
zh_Hans: 回复格式
40+
en_US: Response Format
41+
type: string
42+
help:
43+
zh_Hans: 指定模型必须输出的格式
44+
en_US: specifying the format that the model must output
45+
required: false
46+
options:
47+
- text
48+
- json_object

provider/qiniu.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ label:
33
en_US: Qiniu Cloud
44
zh_Hans: 七牛云
55
description:
6-
en_US: Official Qiniu Cloud Dify plugin providing comprehensive AI inference services and cloud storage management. Supports multiple LLM models including deepseek-r1, deepseek-v3, GLM-4.5, Kimi-K2, Qwen series, and offers complete file management capabilities such as file upload, bucket operations, and content retrieval.
7-
zh_Hans: 七牛云官方 Dify 插件,提供全面的 AI 推理服务和云存储管理功能。支持 deepseek-r1、deepseek-v3、GLM-4.5、Kimi-K2、Qwen 系列等多种大语言模型,并提供完整的文件管理能力,包括文件上传、存储空间操作和内容获取等功能。
6+
en_US: Official Qiniu Cloud Dify plugin providing comprehensive AI inference services and cloud storage management. Supports multiple LLM models including GPT-OSS、deepseekGLMKimiQwen series, and offers complete file management capabilities such as file upload, bucket operations, and content retrieval.
7+
zh_Hans: 七牛云官方 Dify 插件,提供全面的 AI 推理服务和云存储管理功能。支持 GPT-OSS、deepseek、GLM、Kimi、Qwen 系列等多种大语言模型,并提供完整的文件管理能力,包括文件上传、存储空间操作和内容获取等功能。
88

99
icon_large:
1010
en_US: icon_l_en.svg

0 commit comments

Comments
 (0)