Skip to content

Commit 81359b5

Browse files
committed
refactor(testdata): Update stores.yaml configuration to support more AI parameters. Adjust the stores.yaml file structure and add more configuration parameters such as provider and endpoint for AI plug-ins.
1 parent 85a21a6 commit 81359b5

File tree

1 file changed

+86
-29
lines changed

1 file changed

+86
-29
lines changed

cmd/testdata/stores.yaml

Lines changed: 86 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,92 @@
11
stores:
2-
- name: git
3-
kind:
4-
name: atest-store-git
5-
enabled: true
6-
url: xxx
7-
readonly: false
8-
disabled: false
9-
- name: ai
10-
kind:
11-
name: atest-ext-ai
12-
enabled: true
2+
- name: git
3+
kind:
4+
name: atest-store-git
5+
dependencies: []
6+
url: "unix:///tmp/atest-store-git.sock"
7+
params: []
8+
link: ""
9+
enabled: true
10+
categories: []
11+
description: ""
12+
url: xxx
13+
username: ""
14+
password: ""
15+
readonly: false
16+
disabled: false
17+
properties: {}
18+
- name: ai
19+
kind:
20+
name: atest-ext-ai
21+
dependencies: [] # 无依赖
1322
url: "unix:///tmp/atest-ext-ai.sock"
14-
readonly: false
15-
disabled: false
16-
properties:
23+
params:
1724
- key: "provider"
18-
description: "AI provider (local, openai, claude)"
19-
defaultValue: "local"
20-
- key: "model"
21-
description: "AI model name (auto-detected from available models)"
22-
defaultValue: ""
25+
description: "AI provider (ollama, openai, deepseek)"
26+
defaultValue: "ollama"
2327
- key: "endpoint"
24-
description: "AI service endpoint"
28+
description: "AI service endpoint URL"
2529
defaultValue: "http://localhost:11434"
26-
plugins:
27-
- name: atest-store-git
28-
url: unix:///tmp/atest-store-git.sock
29-
enabled: true
30-
- name: atest-ext-ai
31-
url: unix:///tmp/atest-ext-ai.sock
30+
- key: "api_key"
31+
description: "API key for OpenAI/Deepseek providers"
32+
defaultValue: ""
33+
- key: "model"
34+
description: "AI model name (auto-discovered for ollama)"
35+
defaultValue: ""
36+
- key: "max_tokens"
37+
description: "Maximum tokens for AI generation"
38+
defaultValue: "4096"
39+
- key: "temperature"
40+
description: "Generation temperature (0.0-2.0)"
41+
defaultValue: "0.7"
42+
- key: "timeout"
43+
description: "Request timeout duration"
44+
defaultValue: "30s"
45+
link: "https://github.com/LinuxSuRen/atest-ext-ai"
3246
enabled: true
33-
description: "AI Extension Plugin for intelligent SQL generation and execution"
34-
version: "latest"
35-
registry: "ghcr.io/linuxsuren/atest-ext-ai"
47+
categories: ["ai", "sql-generation"]
48+
description: "AI Extension Plugin for natural language to SQL conversion"
49+
url: "unix:///tmp/atest-ext-ai.sock"
50+
username: ""
51+
password: ""
52+
readonly: false
53+
disabled: false
54+
properties:
55+
provider: "ollama"
56+
endpoint: "http://localhost:11434"
57+
api_key: ""
58+
model: ""
59+
max_tokens: "4096"
60+
temperature: "0.7"
61+
timeout: "30s"
62+
63+
plugins:
64+
- name: atest-store-git
65+
dependencies: []
66+
url: "unix:///tmp/atest-store-git.sock"
67+
params: []
68+
link: ""
69+
enabled: true
70+
categories: []
71+
- name: atest-ext-ai
72+
dependencies: []
73+
url: "unix:///tmp/atest-ext-ai.sock"
74+
params:
75+
- key: "provider"
76+
description: "AI provider (ollama, openai, deepseek)"
77+
defaultValue: "ollama"
78+
- key: "endpoint"
79+
description: "AI service endpoint"
80+
defaultValue: "http://localhost:11434"
81+
- key: "api_key"
82+
description: "API key for external AI services"
83+
defaultValue: ""
84+
- key: "model"
85+
description: "AI model name (auto-discovered for ollama)"
86+
defaultValue: ""
87+
link: "https://github.com/LinuxSuRen/atest-ext-ai"
88+
enabled: true
89+
categories: ["ai", "sql-generation"]
90+
description: "AI Extension Plugin for natural language to SQL conversion"
91+
version: "v0.1.0"
92+
registry: "ghcr.io/linuxsuren/atest-ext-ai"

0 commit comments

Comments
 (0)