Skip to content

Why not use strict mode in the test code validator.ts  #157

Open
@ryoppippi

Description

@ryoppippi

https://platform.openai.com/docs/guides/function-calling/function-calling-with-structured-outputs?api-mode=responses&strict-mode=enabled#strict-mode

in the test code, the strict mode is not enabled. I think we need to enable it and prove that the OpenAI’s claim is false!

However, when I add srict=true here

config: {
reference: process.argv.includes("--reference"),
},

It goes an error like this

Error: Failed to convert the JSON schema to the ChatGPT schema.
    at /Users/ryoppippi/ghq/github.com/samchon/openapi/bin/test/utils/ChatGptFunctionCaller.js:978:19
    at Generator.next (<anonymous>)
    at /Users/ryoppippi/ghq/github.com/samchon/openapi/bin/test/utils/ChatGptFunctionCaller.js:41:71
    at new Promise (<anonymous>)
    at __awaiter (/Users/ryoppippi/ghq/github.com/samchon/openapi/bin/test/utils/ChatGptFunctionCalle
r.js:37:12)
    at step (/Users/ryoppippi/ghq/github.com/samchon/openapi/bin/test/utils/ChatGptFunctionCaller.js:
84:47)
    at /Users/ryoppippi/ghq/github.com/samchon/openapi/bin/test/utils/ChatGptFunctionCaller.js:71:28
    at Generator.next (<anonymous>)
    at /Users/ryoppippi/ghq/github.com/samchon/openapi/bin/test/utils/ChatGptFunctionCaller.js:41:71
    at new Promise (<anonymous>)

According to this error message, I cannot figure out what is the causes of the error

Metadata

Metadata

Labels

questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions