File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ local content_format = types.string + types.array_of(types.one_of({
19
19
})
20
20
}))
21
21
local test_message = types .one_of ({
22
- types .shape ({
22
+ types .partial ({
23
23
role = types .one_of ({
24
24
" system" ,
25
25
" user" ,
@@ -29,7 +29,7 @@ local test_message = types.one_of({
29
29
name = empty + types .string ,
30
30
function_call = empty + types .table
31
31
}),
32
- types .shape ({
32
+ types .partial ({
33
33
role = types .one_of ({
34
34
" function"
35
35
}),
Original file line number Diff line number Diff line change @@ -19,15 +19,15 @@ content_format = types.string + types.array_of types.one_of {
19
19
}
20
20
21
21
test_message = types. one_of {
22
- types. shape {
22
+ types. partial {
23
23
role : types. one_of { " system" , " user" , " assistant" }
24
24
content : empty + content_format -- this can be empty when function_call is set
25
25
name : empty + types. string
26
26
function_call : empty + types. table
27
27
}
28
28
29
29
-- this message type is for sending a function call response back
30
- types. shape {
30
+ types. partial {
31
31
role : types. one_of { " function" }
32
32
name : types. string
33
33
content : empty + types. string
You can’t perform that action at this time.
0 commit comments