-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.ai-test.yaml.sample
More file actions
75 lines (68 loc) · 1.97 KB
/
.ai-test.yaml.sample
File metadata and controls
75 lines (68 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
llm:
# provider: openai-compatible
# endpoint: https://api.openai.com/v1/chat/completions
# apiKeyEnv: OPENAI_API_KEY
# model: gpt-4.1
# timeoutSeconds: 60
#
# HTTP client options
# Set disableTlsVerification: true when the login server uses a self-signed certificate
# (e.g. the bundled fake-login-server module during local development).
http:
disableTlsVerification: false
auth:
login:
method: POST
# Use https://localhost:8443/login with the fake-login-server module (self-signed cert).
url: https://localhost:8443/login
headers:
Content-Type: application/json
body: |
{
"username": "{{username}}",
"password": "{{password}}"
}
responsePath: $.apiKey
provider: openai-compatible
endpoint: https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions
model: qwen3-coder-plus
# apiKeyEnv: OPENAI_API_KEY
apiKey: "sk-your-key" # optional, prefer env
timeoutSeconds: 60
# organization: "..." # optional (if you want)
template:
method: POST
url: "https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"
headers:
Content-Type: "application/json"
Authorization: "Bearer {{apiKey}}"
body: |
{
"model": "{{model}}",
"messages": [
{ "role": "system", "content": "You generate code only." },
{ "role": "user", "content": {{{promptJson}}} }
],
"temperature": 0.1
}
responsePath: "$.choices[0].message.content"
generation:
defaults:
framework: karate
className: OpenApiGeneratedTests
baseUrl: ""
notes: ""
common:
location: src/test/resources/karate
frameworks:
restassured:
location: src/test/java
packageName: org.openprojectx.ai.plugin.generated
karate:
location: src/test/resources/karate
pullRequest:
enabled: true
createAfterPush: true
provider: "bitbucket"
tokenEnv: "BITBUCKET_TOKEN"
targetBranch: "main"