We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dae6576 commit ec3ceedCopy full SHA for ec3ceed
1 file changed
pkg/prompt/prompt_test.go
@@ -269,7 +269,10 @@ messages:
269
ResponseFormat: func() *string { s := "json_schema"; return &s }(),
270
JsonSchema: func() *JsonSchema {
271
js := &JsonSchema{Raw: jsonSchemaStr}
272
- json.Unmarshal([]byte(jsonSchemaStr), &js.Parsed)
+ err := json.Unmarshal([]byte(jsonSchemaStr), &js.Parsed)
273
+ if err != nil {
274
+ t.Fatal(err)
275
+ }
276
return js
277
}(),
278
}
0 commit comments