The OpenAI Python SDK just shipped 3.59.0, with a round of small but practical changes for anyone integrating OpenAI models into production services. The headline is new healthcare model IDs for the Responses API, but most of the work this cycle is on security and input validation.
If you're running agents or handling webhooks, some of these changes will affect your error handling and deployment safety. There's also a documentation update that finally explains how to skip duplicate webhook events, which has been a recurring pain point.
Healthcare model IDs in the API
The release adds healthcare model IDs for the Responses endpoint. The changelog doesn't list the IDs themselves or explain their behaviour, but you can now specify them in API calls. If you're in a regulated environment or building health-related applications, this unlocks access to models designed for those use cases.
Security and validation fixes
Several bug fixes target common pitfalls:
- Credential header redaction: The SDK now redacts credential headers on API error requests. If your logs or monitoring tools collect failed API calls, sensitive keys are no longer exposed (
redact credential headers on API error requests). - Webhook signing key validation: Empty webhook signing keys are now rejected up front. This closes a loophole where a misconfigured environment could lead to silent webhook failures (
reject empty webhook signing keys). - Agent tool argument validation: The SDK now rejects non-finite numbers (like NaN or infinity) passed as arguments to agent tools. This is a hard fail, so check your argument sources if you use dynamic values ().




