Blog

OpenAI Prompts and Evals Shut Down Nov 30: Migration Guide

OpenAI's reusable prompts (/v1/prompts) and Evals shut down Nov 30, 2026. Find affected code, recover prompts, and pick where they live next.

Engineering6 min readBen @ Grepture

Your prompts need a new home

On November 30, 2026, OpenAI shuts down /v1/prompts and reusable prompt objects, along with the Evals dashboard, API and graders. If your Responses API calls pass prompt: { id: "pmpt_..." }, or your regression suites run in OpenAI Evals, both need to move somewhere else.

This guide covers what is actually shutting down, how to find every affected call in your codebase, how to recover prompt content when there is no export button, and where your prompts and evals can live afterward.

What OpenAI is shutting down

Here is the relevant part of OpenAI's deprecations page:

ShutdownAffectedStatusOpenAI's recommended replacement
Nov 30, 2026/v1/prompts and reusable prompt objectsDeprecated"Move prompt content into your application code."
Nov 30, 2026Evals dashboard, API, and graders for eval workflowsRead-only"Migrate to Promptfoo"
Nov 30, 2026Agent BuilderDeprecatedAgents SDK or ChatGPT Workspace Agents (ChatKit remains available)

The Assistants API is not part of this batch. Its shutdown happened in August.

Two things are missing from the official documentation, and both matter for your plan:

  • What happens to requests that still pass a prompt ID after November 30. OpenAI doesn't say. Assume they fail, and make sure no production path depends on them.
  • An export path. The migration guide tells you to move prompt content into code, but it doesn't describe any export API or bulk download. Community forum threads report the same thing. If you have dozens of prompts, copying them out takes time, so start now.

Step 1: Find every call that depends on a stored prompt

Prompt IDs start with pmpt_, which makes them easy to grep for. Search code and config, because many teams keep prompt IDs in environment variables or feature flags rather than in source:

# Stored prompt IDs anywhere: code, .env files, config, infra
grep -rnE 'pmpt_[A-Za-z0-9]+' . --exclude-dir={node_modules,.git,dist,.next}

# Calls that pass a prompt object (catches IDs loaded from variables)
grep -rnE 'prompt\s*[:=]\s*\{' . --exclude-dir={node_modules,.git} | grep -iE '\bid\b'

# Evals API usage
grep -rnE 'evals\.(create|retrieve|runs)|/v1/evals' . --exclude-dir={node_modules,.git}

Don't skip the config search. A prompt ID stored in a secrets manager or a Vercel environment variable won't show up in a code search, and it is exactly the kind of thing that breaks quietly on December 1.

For each hit, write down the prompt ID, the version you pin (if any), and the variables you pass. You need all three in the next step.

Step 2: Recover the prompt content before it disappears

A reusable prompt is more than its text. Depending on how your team set it up, a prompt object can also carry the model, reasoning settings, tool definitions and a structured output schema. When the prompt object goes away, all of that has to live somewhere else, or your call will silently fall back to defaults.

For each prompt you found, copy out:

  1. Every message, with roles, exactly as written, including whitespace. Small formatting changes can shift outputs.
  2. The variable names and where they appear.
  3. The model and parameters attached to the version you actually serve. Production often pins an older version than the latest one in the dashboard.
  4. Tools and response format, if the prompt defines them.
  5. Five to twenty real input/output pairs from production. These become your regression set, and they let you prove the migrated prompt behaves the same way.

Point 5 is the one people skip. Without a before-and-after comparison, "we migrated the prompts" really means "we hope nothing changed."

Step 3: Decide where prompts live now

OpenAI's answer is application code. That's a legitimate choice, but it isn't the only one, and the right answer depends on who edits your prompts.

Prompts in codePrompts in a provider-neutral prompt store
VersioningGit history and PR reviewNumbered, immutable versions with instant rollback
Who can change a promptEngineers, through a deployEngineers, PMs and domain experts, without a deploy
Rollback speedRevert and redeployActivate the previous version
TestingYour CI and eval harnessBuilt into the store, often against production traffic
Lock-inNoneDepends on the vendor. Check whether you can export raw templates via API
Best forSmall teams, prompts that change with codeTeams that iterate on prompts weekly or run A/B tests

If engineers own every prompt and ship daily, prompts in code are simple and boring, which is a good thing. If your support lead tunes the tone of the reply prompt every week, moving prompts into code turns every tweak into a ticket. That's the trade-off we cover in more depth in separating prompts from code.

Whichever option you choose, don't move to another tool that holds your prompts hostage. This deprecation is a reminder that prompts stored inside a model provider's platform depend on that platform's roadmap.

Step 4: Rewrite the calls

Here's a typical Responses API call that uses a stored prompt:

// Before: prompt content lives in OpenAI's dashboard
const response = await openai.responses.create({
  model: "gpt-5.5",
  prompt: {
    id: "pmpt_68b0c4f2a1",
    version: "4",
    variables: {
      customer_name: customer.name,
      issue: ticket.body,
    },
  },
});

The migration OpenAI recommends turns the prompt into a typed function in your codebase. Variables become arguments, so a missing variable fails at compile time instead of producing a half-filled prompt:

// prompts/support-reply.ts
export const SUPPORT_REPLY_VERSION = "5";

const SYSTEM = `You are a support agent for Acme.
Be concise, apologize once at most, and always end with a concrete next step.
Never promise refunds or timelines you cannot verify.`;

export function supportReply(args: { customerName: string; issue: string }) {
  return {
    instructions: SYSTEM,
    input: [
      {
        role: "user" as const,
        content: `Customer: ${args.customerName}\n\nIssue:\n${args.issue}`,
      },
    ],
  };
}
// After: the call site passes the model explicitly
import { supportReply } from "./prompts/support-reply";

const response = await openai.responses.create({
  model: "gpt-5.5",
  ...supportReply({ customerName: customer.name, issue: ticket.body }),
});

The same pattern in Python:

# prompts/support_reply.py
SUPPORT_REPLY_VERSION = "5"

SYSTEM = """You are a support agent for Acme.
Be concise, apologize once at most, and always end with a concrete next step.
Never promise refunds or timelines you cannot verify."""


def support_reply(customer_name: str, issue: str) -> dict:
    return {
        "instructions": SYSTEM,
        "input": [
            {"role": "user", "content": f"Customer: {customer_name}\n\nIssue:\n{issue}"},
        ],
    }


# call site
response = client.responses.create(model="gpt-5.5", **support_reply(customer.name, ticket.body))

Three details that are easy to get wrong:

  • Keep static content first. OpenAI's prompt caching matches on the prompt prefix. Put the fixed system text before anything dynamic, or you'll pay full price for tokens that used to be cached.
  • Carry over the model settings. If the prompt object pinned a model, reasoning effort, tools or a text.format schema, those now belong at the call site.
  • Log the prompt version. SUPPORT_REPLY_VERSION is useless if it never reaches your logs. Attach it as request metadata so that when output quality drops you can tell which prompt produced it.

Step 5: Replace OpenAI Evals

OpenAI's official recommendation is Promptfoo. There is no automated export here either. The cookbook says you recreate prompts, providers, test cases and assertions in a promptfooconfig.yaml file.

A minimal config for the support prompt above:

description: support-reply regression suite
prompts:
  - file://prompts/support_reply.json
providers:
  - openai:responses:gpt-5.5
tests:
  - vars:
      customer_name: Dana
      issue: "I was charged twice for my November invoice."
    assert:
      - type: contains-any
        value: ["duplicate", "refund", "billing team"]
      - type: llm-rubric
        value: "Apologizes at most once, explains the next step, does not promise a refund date"

Run it with promptfoo eval -c promptfooconfig.yaml --no-cache. Seed the tests block with the real input/output pairs you saved in step 2.

One caveat from OpenAI's own guide applies to everyone: LLM-as-judge graders have to be re-validated after migration. A rubric that scored 0.8 under OpenAI's grader may score differently under a new judge model with a different prompt wrapper. Before you trust the new numbers, run the old and new graders on the same small set and check that they agree. We've written about why judges drift and how to calibrate them.

Offline evals cover half the problem

Moving your test suite is the minimum. It's also worth asking what the old suite missed. Offline evals tell you how a prompt performs on the cases you thought to write down. They don't tell you how it performs on what users actually send on a Tuesday afternoon.

The teams that catch regressions earliest run both: a fixed suite in CI to block obviously broken changes, and continuous scoring on a sample of production traffic to catch drift you didn't predict. That's the approach behind evals on real traffic.

How Grepture helps

Grepture is an AI gateway, and prompts and evals are part of it. If you're migrating anyway, there's a second option besides putting prompts in code. The prompt store isn't tied to any model provider.

Prompts. You create prompts in the dashboard with {{variable}} templates, publish immutable versions, and roll back by activating an older one. Prompts aren't tied to OpenAI, so the same slug works against Anthropic, Gemini or any OpenAI-compatible provider. For the Responses API, fetch and resolve the prompt with the SDK and pass the result as input:

const { messages, metadata } = await grepture.prompt.assemble("support-reply", {
  variables: { customer_name: customer.name, issue: ticket.body },
});

const response = await openai.responses.create({ model: "gpt-5.5", input: messages });

For Chat Completions, grepture.prompt.use() lets the gateway resolve the template on its side. Each request is then logged with the prompt and version that produced it. Our prompt management deep-dive walks through versioning, variables and rollback, and the docs cover every SDK method.

No new lock-in. grepture.prompt.list() and grepture.prompt.get() return your raw templates, Handlebars syntax intact. If you ever leave, a ten-line script exports everything. Make sure any prompt tool you consider can do the same.

Evals. Evaluators run on traffic that already flows through the gateway. You can pick from six built-in judges (relevance, helpfulness, hallucination and others) or write your own, filter them to a single prompt, and set a sampling rate. Datasets turn production logs into the regression suite from step 2, and prompt experiments split live traffic between versions to compare eval scores.

Redact PII before it reaches the model.

Grepture is an open-source, EU-hosted AI gateway. Names, emails and secrets are replaced on the way out and restored in the response. Free for 1,000 requests a month.

Start free