Skip to content

Add gpt 5.4 prompting guide#3

Open
yishangupenn wants to merge 15 commits intomainfrom
upstream-pr-2494
Open

Add gpt 5.4 prompting guide#3
yishangupenn wants to merge 15 commits intomainfrom
upstream-pr-2494

Conversation

@yishangupenn
Copy link

@yishangupenn yishangupenn commented Mar 10, 2026

Copied from upstream: openai/openai-cookbook#2494
Original author: @itsryu-dq
Originally opened: 2026-03-06


Summary

This PR adds a new notebook:

examples/gpt-5/gpt-5-4_prompting_guide.ipynb

The notebook introduces practical prompting patterns for GPT-5.4 workflows, including:

  • prompt structure and verbosity control
  • scope constraints for coding and document workflows
  • tool usage and verification patterns
  • structured extraction prompts
  • long-context and compaction workflows
  • prompt migration considerations from earlier GPT-5 models

The notebook structure follows the style of the existing GPT-5.2 Prompting Guide while focusing on practical prompt design patterns for GPT-5.4.

The PR also includes the necessary registry.yaml entry so the notebook renders on the OpenAI Cookbook website.


Motivation

Developers building GPT-5-class applications often need practical guidance on how to structure prompts for complex workflows such as:

  • multi-step agent execution
  • tool-integrated pipelines
  • document analysis and structured extraction
  • long-context reasoning tasks

This notebook provides a structured set of prompt patterns and examples that developers can reuse when designing GPT-5.4 workflows.

The goal is to extend the existing GPT-5 prompting guidance in the Cookbook with a focused guide for GPT-5.4 while maintaining consistency with the structure and style of the existing GPT-5.2 guide.


For new content

erikakettleson-openai and others added 15 commits March 3, 2026 09:10
Co-authored-by: Minhajul Hoque <84698472+minh-hoque@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: minh-hoque <minh.hoque@gmail.com>
Co-authored-by: Tom Pakeman <tompakeman@openai.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Improve the GPT-5.4 prompting guide notebook by expanding guidance on long-context workflows, tool usage, structured extraction, prompt migration, and evaluation practices. Align structure with existing GPT-5.x guides and strengthen practical prompting patterns for production workflows.
… guidance

Improve the GPT-5.4 prompting guide notebook by adding completion criteria, prompt pattern selection guidance, workflow prompt templates, evaluation and debugging practices, and expanded examples. Strengthen practical guidance for long-context workflows, tool-integrated execution, and production prompt design while maintaining alignment with existing GPT-5.x documentation patterns.
Repair the GPT-5.4 prompting guide notebook structure to ensure it is valid .ipynb JSON and renders correctly in GitHub diffs. Fix cell formatting, metadata, and serialization issues without changing the guide’s content.
Refine the GPT-5.4 prompting guide notebook with a final editorial pass to improve tone, consistency, and publication readiness. Tighten wording, remove overly informal phrasing, and soften any language that could imply undocumented behavior while preserving the guide’s structure and practical guidance.
Co-authored-by: Annika Brundyn, Kathy Lau and Nish Singaraju
yishangupenn pushed a commit that referenced this pull request Mar 10, 2026
…8add-10fedf718e92

Add OpenAI Cookbook - LLMs 101 article to registry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants