add json mode #29
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.
|