Skill LLM OpenAI
Purpose
Define how an agent integrates a model already named by the user or host project. This skill does not recommend, approve, rank, or automatically replace models during ordinary implementation.
Read Order
Read shared contracts first:
../_shared/route-key-schema.md
../_shared/model-catalog-schema.md
../_shared/pricing-matrix-schema.md
../_shared/capability-matrix-schema.md
../_shared/connection-profile-schema.md
../_shared/request-url-matrix-schema.md
../_shared/request-envelope.md
../_shared/response-envelope.md
../_shared/error-contract.md
../_shared/progress-contract.md
../_shared/ui-binding.md
../_shared/sync-policy.md
../_shared/logging-fields.md
Then read:
references/connection-profiles.md
references/request-urls.md
references/model-catalog.md
references/pricing-matrix.md
references/capability-matrix.md
- the transport for the requested kind
references/logging-contract.md when logging is implemented
references/model-sync.md only for an explicit update or verification task
Read references/hosted-tools.md when provider-hosted tools are requested.
Runtime Rules
- Send the exact documented model ID. This skill currently maintains rules for
gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, and gpt-image-2.
- Do not replace a requested model with another model or moving alias.
- Resolve connection profile, request kind, API surface, API version, endpoint kind, full route key, base URL, and request URL before capability lookup.
- Match capabilities by the exact full
RouteKey row, including API version and endpoint kind.
- Prefer no surface implicitly: use the surface required by the project. Responses and Chat Completions have different payloads and continuation rules.
- Use
gpt-image-2 through the direct Image API rows. Responses hosted image generation is a separate tool flow whose main model is a GPT model.
- Reject requested fields marked
unsupported or unknown; do not silently drop or translate them to another surface.
- Keep caller-defined functions in
Tools and provider-hosted tools in HostedTools.
- Preserve response item IDs, call IDs, required linkage, encrypted reasoning items, and assistant
phase when continuing a documented stateful flow.
- Never expose raw chain-of-thought. Map visible summaries to
ReasoningSummary and opaque state to ReasoningItems or provider metadata.
- Store API-key references only. Never write secrets, authorization headers, MCP credentials, or signed URLs into these files or normal logs.
- Use
references/pricing-matrix.md for estimates, including context bands and cache charges.
Request Flow
- Read the requested provider, region, model, and request kind from the host project or user.
- Resolve the connection profile and exact request URL row.
- Resolve the exact catalog and capability rows.
- Validate every optional field before constructing the request.
- Apply the matching transport.
- Normalize the provider response, errors, progress, and logs through the shared contracts.
OpenAI Field Mapping
- Responses
reasoning.effort and Chat Completions reasoning_effort use the values recorded in the capability matrix.
TextVerbosity maps to Responses text.verbosity or Chat Completions verbosity only where verified.
- Responses
reasoning.mode, reasoning.context, and previous_response_id are Responses-only fields.
- Responses structured output maps through
text.format; Chat Completions maps through response_format.
CacheKey maps to prompt_cache_key where verified; explicit cache controls require the documented Responses mapping.
Out of Scope
- ChatGPT consumer configuration
- Apps SDK or Agents SDK orchestration
- Realtime/audio integration
- fine-tuning
- model ranking or model permission policy
- non-OpenAI providers
1---2name: skill-llm-openai3description: Runtime contract for direct OpenAI API integration. Use it to resolve exact OpenAI model IDs, Responses or Chat Completions URLs, request fields, reasoning, tools, structured output, image input, Image API calls, streaming, response mapping, pricing references, and logging. Model choice remains with the user or host project.4---56# Skill LLM OpenAI78## Purpose910Define how an agent integrates a model already named by the user or host project. This skill does not recommend, approve, rank, or automatically replace models during ordinary implementation.1112## Read Order1314Read shared contracts first:15161. `../_shared/route-key-schema.md`172. `../_shared/model-catalog-schema.md`183. `../_shared/pricing-matrix-schema.md`194. `../_shared/capability-matrix-schema.md`205. `../_shared/connection-profile-schema.md`216. `../_shared/request-url-matrix-schema.md`227. `../_shared/request-envelope.md`238. `../_shared/response-envelope.md`249. `../_shared/error-contract.md`2510. `../_shared/progress-contract.md`2611. `../_shared/ui-binding.md`2712. `../_shared/sync-policy.md`2813. `../_shared/logging-fields.md`2930Then read:31321. `references/connection-profiles.md`332. `references/request-urls.md`343. `references/model-catalog.md`354. `references/pricing-matrix.md`365. `references/capability-matrix.md`376. the transport for the requested kind387. `references/logging-contract.md` when logging is implemented398. `references/model-sync.md` only for an explicit update or verification task4041Read `references/hosted-tools.md` when provider-hosted tools are requested.4243## Runtime Rules4445- Send the exact documented model ID. This skill currently maintains rules for `gpt-5.6-sol`, `gpt-5.6-terra`, `gpt-5.6-luna`, and `gpt-image-2`.46- Do not replace a requested model with another model or moving alias.47- Resolve connection profile, request kind, API surface, API version, endpoint kind, full route key, base URL, and request URL before capability lookup.48- Match capabilities by the exact full `RouteKey` row, including API version and endpoint kind.49- Prefer no surface implicitly: use the surface required by the project. Responses and Chat Completions have different payloads and continuation rules.50- Use `gpt-image-2` through the direct Image API rows. Responses hosted image generation is a separate tool flow whose main model is a GPT model.51- Reject requested fields marked `unsupported` or `unknown`; do not silently drop or translate them to another surface.52- Keep caller-defined functions in `Tools` and provider-hosted tools in `HostedTools`.53- Preserve response item IDs, call IDs, required linkage, encrypted reasoning items, and assistant `phase` when continuing a documented stateful flow.54- Never expose raw chain-of-thought. Map visible summaries to `ReasoningSummary` and opaque state to `ReasoningItems` or provider metadata.55- Store API-key references only. Never write secrets, authorization headers, MCP credentials, or signed URLs into these files or normal logs.56- Use `references/pricing-matrix.md` for estimates, including context bands and cache charges.5758## Request Flow59601. Read the requested provider, region, model, and request kind from the host project or user.612. Resolve the connection profile and exact request URL row.623. Resolve the exact catalog and capability rows.634. Validate every optional field before constructing the request.645. Apply the matching transport.656. Normalize the provider response, errors, progress, and logs through the shared contracts.6667## OpenAI Field Mapping6869- Responses `reasoning.effort` and Chat Completions `reasoning_effort` use the values recorded in the capability matrix.70- `TextVerbosity` maps to Responses `text.verbosity` or Chat Completions `verbosity` only where verified.71- Responses `reasoning.mode`, `reasoning.context`, and `previous_response_id` are Responses-only fields.72- Responses structured output maps through `text.format`; Chat Completions maps through `response_format`.73- `CacheKey` maps to `prompt_cache_key` where verified; explicit cache controls require the documented Responses mapping.7475## Out of Scope7677- ChatGPT consumer configuration78- Apps SDK or Agents SDK orchestration79- Realtime/audio integration80- fine-tuning81- model ranking or model permission policy82- non-OpenAI providers