error when using openrouter

Resolved 💬 1 comment Opened Dec 9, 2025 by xxxlwb Closed Dec 11, 2025

What version of Codex is running?

codex-cli 0.66.0

What subscription do you have?

openrouter

Which model were you using?

openai/gpt-5.1-codex-max

What platform is your computer?

macos

What issue are you seeing?

■ {"error":{"message":"Provider returned error","code":400,"metadata":{"raw":"{\n
\"error\": {\n \"message\": \"Invalid schema for function 'shell': In context=(),
'additionalProperties' is required to be supplied and to be false.\",\n \"type\":
\"invalid_request_error\",\n \"param\": \"tools[0].parameters\",\n \"code\":
\"invalid_function_parameters\"\n }\n}","provider_name":"OpenAI"}},"user_id":"user_35x92YP6MlAGx
K4s537Io3nKbei"}

What steps can reproduce the bug?

when I sent a request to Codex.

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗