You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f3c7630
Browse filesBrowse the repository at this point in the historyBrowse files
hinux
committed
fix(openai-chat): deep-recursive null-type removal for all non-xAI providers
Expand the root-type fix to recursively remove `type:null` (JS null,
JSON-Schema "null" string, and {type:"null"} inside anyOf/oneOf arrays)
at every nesting level. Codex tools like `codex_app__automation_update`
ship nullable fields such as:
localEnvironmentConfigPath: { anyOf: [{ type: "string" }, { type: "null" }] }
DeepSeek rejects all forms of `type:null` — at root and nested — while
the original Kimi fix only enforced `type:"object"` at the root.
Changes from v1:
- Add `fixNullTypes()` — recursive walk that replaces standalone
`type:null`/`type:"null"` with `type:"string"` and filters
`{type:"null"}` entries out of anyOf/oneOf/allOf arrays.
- Call `fixNullTypes` from `ensureRootObjectType` so every non-xAI
provider gets both root and deep normalization.
0 commit comments