Last updated: November 30, 2026
OpenAI Python SDK 3.61.0, released November 30, 2026, marks the Evals API and saved prompt references as deprecated. Evals calls now raise a DeprecationWarning, and the docs name November 30, 2026 as the scheduled shutdown. OpenAI recommends moving prompts into application code and evals to Promptfoo.
Contents
- What changed in version 3.61.0
- Version 3.61 vs. 3.60 and 3.59
- The November 30, 2026 shutdowns
- How to upgrade and find affected code
- Migrating saved prompts into code
- Migrating Evals to Promptfoo
- Other fixes in 3.61.0
- Limitations and open questions
- Frequently asked questions
What changed in version 3.61.0
OpenAI published openai-python v3.61.0 on GitHub at about 4:21 p.m. ET on November 30, 2026 (release notes). Its one feature entry is “deprecate Evals and saved prompt references.”
According to the pull request, the SDK now emits a DeprecationWarning on synchronous and asynchronous Evals calls. The Evals and saved prompt notices name the scheduled shutdown date of November 30, 2026, and the Responses and Realtime docstrings link to the prompt migration guide (PR #4351).
The change touches three places:
client.evals,client.evals.runsand run output items, which are marked deprecated with a message ending “Use Promptfoo instead.”- The
promptparameter onclient.responses.create, including the beta Responses resource. - The
promptfield in Realtime call accept, session and response parameters.
The methods are not removed; the SDK only warns.
Version 3.61 vs. 3.60 and 3.59
The table compares the last three releases, based on the GitHub release notes (GitHub).
| Version (date) | Main API changes | Notable fixes |
|---|---|---|
| 3.59.0 (Nov 24) | Healthcare model IDs for Responses | Credential headers redacted on API error requests; empty webhook signing keys rejected |
| 3.60.0 (Nov 26) | Spend alerts and response compaction fields; updating session vaults | Documentation clarifications for retries, Batch and Realtime noise reduction |
| 3.61.0 (Nov 30) | Evals and saved prompt references deprecated | WebSocket base URL, browser cancellation, chunked webhook verification |
The November 30, 2026 shutdowns
The SDK change follows the schedule on OpenAI’s deprecations page, where these items were all given a notice date of June 3, 2026 (OpenAI deprecations):
| Feature or endpoint | Shutdown date | Status | Recommended replacement |
|---|---|---|---|
/v1/prompts and reusable prompt objects |
Nov 30, 2026 | Deprecated | Prompt content in your application code |
| Evals dashboard, API, and graders for eval workflows | Nov 30, 2026 | Read-only | Promptfoo |
| Agent Builder | Nov 30, 2026 | Deprecated | Agents SDK or ChatGPT Workspace Agents; ChatKit remains available |
| Self-serve fine-tuning job creation | Dec 15, 2026 | Restricted access | See OpenAI’s fine-tuning timeline |
If you are moving Agent Builder flows into code, our OpenAI Agents SDK 0.26 guide covers the current SDK release.
How to upgrade and find affected code
- Upgrade the package with
pip install --upgrade openaiand confirmopenai.__version__reports 3.61.0. - Run your test suite with
python -W error::DeprecationWarning -m pytestin a branch. Every Evals call will fail loudly, which gives you a list of call sites. - Search the codebase for
client.evals,prompt=and prompt IDs that start withpmpt_. - For each saved prompt, copy the latest prompt text out of the dashboard into a builder function, then call
responses.createwithmodelandinput. - For each eval, recreate it in
promptfooconfig.yaml, then runpromptfoo eval -c promptfooconfig.yaml --no-cacheandpromptfoo view. - Remove the old calls before restoring normal warning settings.
Be careful with step 2 in production. The pull request warns that filters that turn warnings into errors can stop the request (PR #4351).
Migrating saved prompts into code
OpenAI’s migration guide says to move prompt content out of the managed prompt object and into your application code, which gives you more control over review, testing, deployment and versioning (OpenAI migration guide). The before and after look like this in Python:
# Before: saved prompt reference (deprecated)
response = client.responses.create(
prompt={"id": "pmpt_123", "version": "1",
"variables": {"customer_name": "Acme", "issue": "billing question"}})
# After: prompt built in code
def support_prompt(customer_name: str, issue: str):
return [
{"role": "system", "content": "You are a helpful support assistant. Be concise, accurate, and friendly."},
{"role": "user", "content": f"Customer name: {customer_name}. Issue: {issue}. Write a response to the customer."},
]
response = client.responses.create(model="gpt-6.2-astra", input=support_prompt("Acme", "billing question"))
The new call must name a model explicitly. The guide’s example uses gpt-6.2-astra.
The guide’s recommended patterns are worth adopting as team rules:
- Variables become typed arguments. Each prompt variable becomes a function parameter, so dynamic values are explicit.
- Static content first. Put fixed instructions before dynamic values to keep prompt caching working, since cache hits depend on exact prefix matches.
- One prompts module. Do not scatter prompts across the codebase. Keep each prompt as a named builder function and version it with git commits, PR review and tests.
Migrating Evals to Promptfoo
OpenAI is winding down the Evals product and recommends Promptfoo, an open-source CLI and library for evaluating and red-teaming AI apps and agents (OpenAI Cookbook). There is no export feature in the guide; you recreate each evaluation by hand.
| OpenAI Evals concept | Promptfoo equivalent |
|---|---|
| Evaluations and results in the Platform dashboard | A config file run with the CLI or in CI |
| Graders configured as testing criteria | Assertions and metrics |
| Runs tied to the Platform workflow | Runs inside development, testing and deployment pipelines |
| Test data, prompts and models | Tests, prompts and providers in promptfooconfig.yaml |
The cookbook cautions that similarity scores may not match across systems, and that recreated graders, especially LLM-as-a-judge graders, need validation before you rely on them. If a config fails, run promptfoo validate config -c promptfooconfig.yaml.
For other eval tooling, see our Google ADK 2.15 guide to pass@k evals and the GitHub Copilot Evals guide.
Other fixes in 3.61.0
Three fixes ship alongside the deprecation (release notes):
- WebSocket base URL. WebSocket connections now follow module-level base URL changes, as HTTP requests do.
- Browser cancellation. The browser toolset rechecks cancellation after approval callbacks, before acting.
- Webhook verification. Signatures are verified in chunks, with no change to the signature format.
The SDK itself is free under the Apache 2.0 license; API calls are billed at your normal OpenAI rates. For long-running jobs, see our OpenAI Background Mode guide.
Limitations and open questions
- The release notes do not say whether the server rejects Evals or prompt object requests immediately after November 30. The deprecations page lists Evals as read-only and prompt objects as deprecated.
- Promptfoo results are new runs. They do not import your earlier OpenAI Evals history.
- Fine-tuning graders follow a separate timeline, and self-serve fine-tuning job creation becomes restricted on December 15, 2026.
Frequently asked questions
What changed in OpenAI Python SDK 3.61.0?
Version 3.61.0, released November 30, 2026, deprecates the Evals resources and the saved prompt reference field. Evals calls emit a DeprecationWarning. It also fixes WebSocket base URL handling and browser cancellation checks, and verifies webhook signatures in chunks.
When do OpenAI Evals and saved prompts shut down?
OpenAI’s deprecations page lists November 30, 2026 as the shutdown date for /v1/prompts and reusable prompt objects, for the Evals dashboard, API and graders for eval workflows, and for Agent Builder. All three were announced on June 3, 2026.
What should I use instead of OpenAI Evals?
OpenAI recommends Promptfoo, an open-source CLI and library for evaluating and red-teaming AI apps. You recreate prompts, providers, test cases and assertions in a promptfooconfig.yaml file and run them locally or in CI.
How do I replace a saved prompt ID in the Responses API?
Move the prompt text into your code and pass it as input messages with an explicit model, instead of sending a prompt object with an ID, version and variables. OpenAI suggests builder functions whose arguments replace prompt variables.
Will the DeprecationWarning break my application?
A DeprecationWarning does not stop the call by default. The pull request notes that warning filters which turn warnings into errors can stop the request, so check pytest settings and any -W error options.
Sources
- openai-python v3.61.0 release notes (GitHub)
- feat(api): deprecate Evals and saved prompt references, pull request #4351 (GitHub)
- Deprecations (OpenAI API docs)
- Migrate from prompt objects (OpenAI API docs)
- Moving from OpenAI Evals to Promptfoo (OpenAI Cookbook)
Featured image: OpenAI logo, public domain, via Wikimedia Commons. OpenAI is a trademark of OpenAI. FreeAnswers is not affiliated with OpenAI or Promptfoo.