Skip to content

[Bug] codex_app__automation_update schema type is null - causes DeepSeek HTTP 400 via CC Switch #36441

Open

Description

@fengzhenkai1-cloud

Error description

When using DeepSeek (deepseek-v4-pro) as the model provider through CC Switch, the proxy fails with:

CC Switch local proxy failed while handling Codex endpoint /responses.
Provider: DeepSeek; model: deepseek-v4-pro; upstream_status: HTTP 400;
cause: Invalid schema for function 'codex_app__automation_update': schema must be a JSON Schema of 'type: "object"', got 'type: null'.

Root cause

The function definition for codex_app__automation_update has a JSON Schema where ype is
ull instead of "object". DeepSeek's API validates function schemas strictly and rejects the request with HTTP 400.

Expected behavior

The schema should have "type": "object" (a string value), not "type": null.

Impact

Users cannot use DeepSeek as a model provider through CC Switch because every request that includes the codex_app__automation_update tool definition will be rejected.

Suggested fix

Update the codex_app__automation_update function schema to use "type": "object" instead of
ull (or "type": null).

Environment

  • Codex desktop app (Windows)
  • CC Switch plugin
  • DeepSeek deepseek-v4-pro
  • Date: 2026-08-01

Activity

  1. added
    bug
    app
    custom-model
    tool-calls
    on Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appautomationsbugcustom-modeltool-calls

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions