Skip to content

add json mode

add json mode #29

Triggered via push January 2, 2024 23:45
Status Failure
Total duration 34s
Artifacts

test.yml

on: push
run-tests
22s
run-tests
Fit to window
Zoom out
Zoom in

Annotations

7 errors
ZodError: [: node_modules/zod/lib/index.mjs#L164
"code": "invalid_type", "expected": "number", "received": "undefined", "path": [ "age" ], "message": "Required" }, { "code": "invalid_type", "expected": "string", "received": "undefined", "path": [ "name" ], "message": "Required" } ] at new ZodError (/home/runner/work/instructor-js/instructor-js/node_modules/zod/lib/index.mjs:164:9) at error (/home/runner/work/instructor-js/instructor-js/node_modules/zod/lib/index.mjs:538:31) at /home/runner/work/instructor-js/instructor-js/src/instructor.ts:107:32
error: 400 'SYSTEM' is not one of ['system'
at new OpenAIError (:1:33) at new APIError (/home/runner/work/instructor-js/instructor-js/node_modules/openai/error.mjs:7:9) at new BadRequestError (/home/runner/work/instructor-js/instructor-js/node_modules/openai/error.mjs:89:9) at generate (/home/runner/work/instructor-js/instructor-js/node_modules/openai/error.mjs:40:20) at /home/runner/work/instructor-js/instructor-js/node_modules/openai/core.mjs:283:25
error: 400 'object' is not one of ['function'] - 'tools.0.type'
at new OpenAIError (:1:33) at new APIError (/home/runner/work/instructor-js/instructor-js/node_modules/openai/error.mjs:7:9) at new BadRequestError (/home/runner/work/instructor-js/instructor-js/node_modules/openai/error.mjs:89:9) at generate (/home/runner/work/instructor-js/instructor-js/node_modules/openai/error.mjs:40:20) at /home/runner/work/instructor-js/instructor-js/node_modules/openai/core.mjs:283:25
ZodError: [: node_modules/zod/lib/index.mjs#L164
"code": "invalid_type", "expected": "number", "received": "undefined", "path": [ "age" ], "message": "Required" }, { "code": "invalid_type", "expected": "string", "received": "undefined", "path": [ "name" ], "message": "Required" } ] at new ZodError (/home/runner/work/instructor-js/instructor-js/node_modules/zod/lib/index.mjs:164:9) at error (/home/runner/work/instructor-js/instructor-js/node_modules/zod/lib/index.mjs:538:31) at /home/runner/work/instructor-js/instructor-js/src/instructor.ts:107:32
error: 400 'SYSTEM' is not one of ['system'
at new OpenAIError (:1:33) at new APIError (/home/runner/work/instructor-js/instructor-js/node_modules/openai/error.mjs:7:9) at new BadRequestError (/home/runner/work/instructor-js/instructor-js/node_modules/openai/error.mjs:89:9) at generate (/home/runner/work/instructor-js/instructor-js/node_modules/openai/error.mjs:40:20) at /home/runner/work/instructor-js/instructor-js/node_modules/openai/core.mjs:283:25
error: 400 'object' is not one of ['function'] - 'tools.0.type'
at new OpenAIError (:1:33) at new APIError (/home/runner/work/instructor-js/instructor-js/node_modules/openai/error.mjs:7:9) at new BadRequestError (/home/runner/work/instructor-js/instructor-js/node_modules/openai/error.mjs:89:9) at generate (/home/runner/work/instructor-js/instructor-js/node_modules/openai/error.mjs:40:20) at /home/runner/work/instructor-js/instructor-js/node_modules/openai/core.mjs:283:25
run-tests
Process completed with exit code 1.