Skip to content
Back to skills

Openai Api Knowledge Patch

ASecurity

OpenAI API

  • 25 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added September 5, 2026
ai-agentsjavascriptpythongojavaapibackend

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill openai-api-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Openai Api Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Openai Api Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-openai-api-knowledge-patch-nevaberry-plugins/badge)](https://www.skillsdirectory.com/skills/nevaberry-openai-api-knowledge-patch-nevaberry-plugins)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: openai-api-knowledge-patch
description: OpenAI API
version: null
license: MIT
metadata:
  author: Nevaberry
---



# OpenAI API Compatibility

Load this skill when implementing or migrating OpenAI API requests, conversation
state, tools, structured output, prompt caching, service tiers, voice sessions,
managed agents, or platform administration.
Use the topic references for complete migration mappings and SDK examples.

## Reference index

| Reference | Topics |
| --- | --- |
| [Release lifecycle](references/release-lifecycle.md) | Shutdowns, replacement models, aliases, fine-tuning, notice periods |
| [Models and prompt caching](references/models-and-prompt-caching.md) | Routing, reasoning, pricing, cache configuration, media, specialized access |
| [Responses and state](references/responses-and-state.md) | Storage, replay, instructions, steering, streaming, safety, authority, keys, regional processing, budgets, and usage |
| [Tools and structured output](references/tools-and-structured-output.md) | Function calling, namespaces, grammars, hosted tools, schemas, Decisions, managed agents, sessions, sandboxes, and review |
| [Service tiers and Realtime](references/service-tiers-and-realtime.md) | Fast, Ultrafast, Flex, background windows, retries, Realtime, Live |

## Breaking changes and deprecations

The Assistants API shut down August 26, 2026. Migrate generation to Responses
and conversation state to the Conversations API.
The November 30, 2026 reusable prompt shutdown covers prompt objects and
`v1/prompts`; move reusable prompt content into application code.

Existing evals became read-only October 31, 2026, ahead of the scheduled
November 30 shutdown of the Evals API and dashboard, including evaluation
graders. Promptfoo is a documented migration option.
Agent Builder was scheduled to shut down November 30, 2026; ChatKit remains
available. Move Agent Builder workflows to the Agents SDK or Workspace Agents.

Self-serve fine-tuning job creation ends for remaining customers January 6,
2027. Inference remains available until the underlying base model is deprecated.
See the lifecycle reference for the earlier eligibility cutoffs.

Replace `whisper-1`, `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, and
`gpt-4o-transcribe-diarize` by February 26, 2027: use `gpt-transcribe` for files
or final transcripts of committed Realtime turns and `gpt-live-transcribe` for
streaming. Both replacements support free-form transcription context, keyword
hints, and multiple expected languages.

The Videos API and its listed Sora models shut down September 24, 2026;
the notice lists no replacement. See the lifecycle reference for exact IDs.

## Request migration and model routing

Use `gpt-6.2-astra` or `gpt-6.2-sol` on Responses or Chat Completions;
both require Responses for tool calling.
For the current text-model migration, omit `temperature` and `top_p` from
both APIs and omit Chat Completions `logprobs`.
When migrating Flex requests to either current model, switch tiers; discounted
long-running requests use a Responses background completion window with
Standard processing.

For `gpt-5.6`, reasoning defaults to `medium`, with supported efforts `none`,
`low`, `medium`, `high`, `xhigh`, and `max`. Chat Completions function tools
require `reasoning_effort: "none"`; use Responses with `reasoning.effort` for
higher-effort function calls.
Generation 5.4 and mini or nano routes commonly defaulted to `none`; when a
migrated request relied on that default, explicitly set `none` to preserve it.
Other release-specific migration restrictions are in the models reference.

## Conversation state and instructions

Chat Completions stores responses by default for new accounts. Use
`store: false` to disable storage.
For stateless reasoning replay, set `store: false` and replay every returned
reasoning item in the next request's `input`. Each includes `encrypted_content`
by default; Zero Data Retention organizations have `store: false` enforced.

For `gpt-5.6`, set `reasoning.context` to `all_turns` to reuse earlier reasoning,
`current_turn` for the current turn, or `auto` for the model default, which is
also the omitted behavior and is reported in the response's `reasoning.context`.
With `all_turns`, continue with `previous_response_id` or replay all prior user
inputs and response output items, retaining types, IDs, `call_id`, `caller`,
and assistant `phase` values.

In the current release, edits to history, certain model changes including
downgrades, or changes to the end user or organization drop earlier reasoning
items. Keep earlier input unchanged when updating settings to preserve
reasoning and keep that input eligible for prompt caching.

Responses appends top-level `instructions` after `input`. Put stable guidance
in a `developer` message as the first input item, and use top-level
`instructions` for the current request. Resend top-level instructions on
continuations: the parent's instructions are request-scoped.
Reuse a stored `previous_response_id` in multiple requests to fork a turn.
Assistant `phase` distinguishes `commentary` from `final_answer`.

## Prompt caching

For `gpt-5.6` routes, use `prompt_cache_options.ttl` instead of
`prompt_cache_retention`, and mark the content block ending the reusable prefix
with `prompt_cache_breakpoint`. Explicit mode uses only marked boundaries;
the default implicit mode adds automatic caching alongside marked boundaries.
Scope the new fields to upgraded routes in shared request builders and retain
any existing `prompt_cache_key`.

```json
{"prompt_cache_options": {"mode": "explicit", "ttl": "30m"}}
```

Implicit caching places a managed breakpoint near the latest user or tool
message; the previous 128-token rounding no longer applies. A changing suffix
can reduce cache hits on a stable prefix.
Explicit mode without explicit breakpoints skips reads and avoids write charges.
On generation 5.6 and later, `prompt_cache_key` enables exact-prefix and key
matching at both kinds of breakpoint; automatic hits remain possible without it.

Keep `tools`, `parallel_tool_calls`, and `text.verbosity` stable for prefix
reuse. Set `tool_choice` to `"none"` to disable calls or use `allowed_tools`
to restrict the callable subset.
Use deferred tool search or a developer-role `additional_tools` input item to
introduce tools during a conversation.
In standard, single-agent Responses, use a `configuration_update` input item
to change effort while keeping request-level `reasoning.effort` unchanged;
the update persists until another update overrides it.

Read both `cached_tokens` and `cache_write_tokens`. Subtract both from total
input tokens to get ordinary-rate input tokens. The general caching guide
lists reads at 0.1× ordinary input for generation 5.6 and later. Use
model-specific rates when available. The 5.6 migration gives writes at 1.25×.
Responses can opt into 12-hour retention, with writes charged at 2.5× input.
The reference covers retention scope, supported blocks, write limits, regional
isolation, visible-token minimums, and diagnostics.

## Function tools and structured output

Omitting `strict` on a Responses function attempts strict mode. An incompatible
schema falls back to best-effort calling and returns the resolved tool with
`strict: false`; set that value explicitly to preserve best-effort migration.
Parallel function calls support strict schemas on non-fine-tuned models in
Responses and Chat Completions. Strict schemas for fine-tuned functions are
cached and ineligible for Zero Data Retention.

Set `async: true` on a Responses function or custom tool to opt in to
asynchronous calling. Responses can continue generating while the client runs
the tool. Track pending work and return results as they become available,
using each original `call_id`.
For streamed function arguments, track calls by `output_index`; argument
deltas are incremental, while `response.function_call_arguments.done` carries
the full JSON string and `response.output_item.done` the complete call.

Programmatic Tool Calling uses `programmatic_tool_calling` and eligible
functions' `allowed_callers` to let hosted JavaScript call them. Preserve
`call_id` and `caller` in results. It supports Zero Data Retention and adds no
container charge. The Responses multi-agent beta requires
`OpenAI-Beta: responses_multi_agent=v1`; execute function calls from every
agent and retain `multi_agent_call`, `multi_agent_call_output`, and
`agent_message` for replay and tracing.

For strict output migration, put `name`, `strict`, and `schema` directly under
Responses `text.format`. Python and JavaScript `responses.parse()` expose
`parsed` on each `output_text` content item; inspect refusals alongside them.
The tools reference includes complete schema limits, fine-tuned model keyword
restrictions, grammars, and Java, Go, .NET, Python, and JavaScript examples.

## Processing tiers and retries

Fast mode replaces Priority Processing; requests using
`service_tier: "priority"` automatically use Fast mode.
Inspect the response's `service_tier` during gradual project-default rollout.
Fast shares each model's Standard rate limit; rapid ramps can downgrade some
requests to Standard speed and rates with `"service_tier": "default"`.

For HTTP `429` / `slow_down` or HTTP `503` / `server_is_overloaded`, wait at
least `Retry-After` when present; otherwise use exponential backoff.
Flex `429 Resource Unavailable` is unbilled. Retry Flex with exponential backoff
if the workload can wait, or use `service_tier: "auto"` or omit the field to
inherit the project default.

The Responses background-window public beta offers `gpt-6.2-astra`,
`gpt-6.2-sol`, `gpt-6.1-terra`, and `gpt-6-luna` a two-hour window at 30% below
Standard token rates or an eight-hour window at 40% below Standard.
Flex is winding down and limited to models that already support it.

## Managed agents and voice

The Managed Agents API public beta provides durable sessions, streamed
progress, custom tools, MCP, context compaction, and recovery. It can use hosted
sandboxes or sandboxes from your infrastructure or a supported provider.
Tool updates replace the entire list: include every retained tool. Functions
and MCP servers change on the next model call; built-ins change by the next turn.
Background compaction is the default and may increase token usage; set
`compaction.async` to `false` for blocking compaction. Experimental time awareness
defaults off; set `experimental.time_awareness` to `true` to enable reminders.

For Realtime GA, remove `OpenAI-Beta: realtime=v1`, mint browser or mobile
credentials through `POST /v1/realtime/client_secrets`, and establish WebRTC
through `/v1/realtime/calls`. Set `session.type` and place output audio settings
under `session.audio.output`; see the reference for the changed response events.
Continuous `gpt-realtime-translate` sessions start translation from incoming
audio: omit `response.create` and user-turn commits.
Live voice uses `/v1/live/sessions` with backend delegation; `gpt-live-1.1`
uses the existing configuration and session-prompt delegation guidance.

## Safety and administration

Requested moderation scores for streamed generation arrive after the full
output. Buffer text when display depends on those scores.
Synchronous safety checks may pause generation for several seconds; allow for
those gaps in stream timeouts. Supported Responses requests may also be checked
asynchronously, triggering safety alerts or a conversation stop for review.

Organization or project hard monthly caps cause affected requests to return
HTTP `429` once tracked spend reaches the limit; alerts can notify beforehand.
Organization API-key creation restrictions override project settings and apply
only at creation. Use the administration reference for expiration policies,
workload identity, IP allowlists, regional processing, and billing controls.

Files in this skill

  • SKILL.md9.5 KB
  • coverage.json1.1 KB
  • references/models-and-prompt-caching.md5.1 KB
  • references/release-lifecycle.md4.5 KB
  • references/responses-and-state.md2.7 KB
  • references/service-tiers-and-realtime.md3.5 KB
  • references/tools-and-structured-output.md4.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.