This repository has been archived by the owner on Aug 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathInferfile
70 lines (62 loc) · 1.56 KB
/
Inferfile
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
file "./internal/api/openai.go" {
tag "OpenAI client" {
infer {
assert = "This code does connect to OpenAI."
model = "gpt-3.5-turbo"
count = 1
threshold = 1.0
}
infer {
assert = "Does this code configure the OpenAI API URL?"
model = "gpt-3.5-turbo"
count = 1
threshold = 1.0
}
infer {
assert = "This code does not contain any hard-coded API credentials."
model = "gpt-3.5-turbo"
count = 1
threshold = 1.0
}
infer {
assert = "Does this code limit the API request max tokens as specified by inference.max_tokens?"
model = "gpt-3.5-turbo"
count = 1
threshold = 1.0
}
}
}
file "./cmd/infer/infer.go" {
tag "command line arguments" {
infer {
assert = "This code accepts an argument for parallel threads."
model = "gpt-3.5-turbo"
count = 1
threshold = 1.0
}
infer {
assert = "Does this code accept an argument for an OpenAI API URL?"
model = "gpt-3.5-turbo"
count = 1
threshold = 1.0
}
}
tag "execution" {
infer {
assert = "This code runs parallel threads."
model = "gpt-3.5-turbo"
count = 5
threshold = 1.0
}
}
}
file "./internal/executor/executor.go" {
tag "Execute" {
infer {
assert = "Does this code run each inference multiple times, as specified by inference.count?"
model = "gpt-3.5-turbo"
count = 5
threshold = 1.0
}
}
}