Skip to content

Improve handling of JSON Schema in OpenAI API Response Context #1491

Improve handling of JSON Schema in OpenAI API Response Context

Improve handling of JSON Schema in OpenAI API Response Context #1491

Triggered via pull request August 9, 2024 02:43
Status Failure
Total duration 36s
Artifacts

pr.yml

on: pull_request
Sanity check
28s
Sanity check
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 1 warning
Sanity check: jsonschema/json.go#L103
cognitive complexity 23 of func `reflectSchema` is high (> 20) (gocognit)
Sanity check: jsonschema/json.go#L105
missing cases in switch of type reflect.Kind: reflect.Invalid, reflect.Uintptr, reflect.Complex64, reflect.Complex128, reflect.Chan, reflect.Func, reflect.Interface, reflect.Map, reflect.Pointer|reflect.Ptr, reflect.UnsafePointer (exhaustive)
Sanity check
issues found
Sanity check
Restore cache failed: Dependencies file is not found in /home/runner/work/go-openai/go-openai. Supported file pattern: go.sum