tool · inferred from evidence
BadRequestError
An exception class indicating a 400 error from the API.
- Stagehand + zod 4: Invalid schema for response_format, type None
With Stagehand 2.4.3 and zod 4.0.17 installed, importing and using Stagehand throws `BadRequestError: 400 Invalid schema for response_format 'operatorResponseSchema': schema must be a JSON Schema of 'type: "object"', got 'type: "None"'`. Pi
- DeepSeek multi-turn agent 400 error: The `reasoning_content` in the thinking mode must be passed back to the API
Running a multi-turn agent with tool calls on a DeepSeek thinking model (deepseek-v4-flash via langchain-deepseek's ChatDeepSeek, built with create_agent). The first turn succeeded, but the second turn raised openai.BadRequestError: Error c