Skip to content
Open

Ai #2142

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
382 commits
Select commit Hold shift + click to select a range
921492e
Correct colin's author link (#1630)
lspacagna-oai Jan 22, 2025
453c90b
Update rate limits cookbook (#1641)
dwigg-openai Jan 22, 2025
0ce1302
Revert "Update registry.yaml" (#1643)
shyamal-anadkat Jan 23, 2025
4785865
Msingh agentic systems code interpreter (#1639)
msingh-openai Jan 27, 2025
8da727a
fix registry yaml (#1646)
lspacagna-oai Jan 27, 2025
23edfac
Msingh openai image fix (#1648)
msingh-openai Jan 27, 2025
cb913c6
Update SQL generation cookbook (#1654)
damon-openai Jan 29, 2025
186c099
Update registry date (#1652)
dwigg-openai Jan 29, 2025
17e9c2d
Clean up the organization of the SQL generation notebook (#1655)
damon-openai Jan 29, 2025
f29c15a
Added an example that uses the Moderation API to check for compliance…
narenoai Jan 29, 2025
82b6167
Update authors (#1651)
lspacagna-oai Jan 30, 2025
e76602a
Msingh openai o3 mini update (#1660)
msingh-openai Feb 3, 2025
bb0dae2
Phundal-bugfixes across 3 scripts (#1598)
phundal-openai Feb 3, 2025
f297551
Msingh openai reasoning param (#1665)
msingh-openai Feb 4, 2025
4b988d2
Update registry.yaml (#1682)
MW-OAI Feb 11, 2025
3b4245d
feat: adds line item example for cost API (#1680)
thli-openai Feb 11, 2025
3951f73
update latex_book to use tiktoken, gpt4o, modified chunk sizes and ad…
narenoai Feb 12, 2025
347811f
Typo fixes - Update Orchestrating_agents.ipynb (#1640)
apuravchauhan Feb 14, 2025
f237586
updated redisqna cookbook to openai version >1.0.0 (#1685)
billchen-openai Feb 14, 2025
a3e98ea
Fix invalid notebook format in Assistants API overview (#1681)
damon-openai Feb 17, 2025
f74fe93
added responses web serach and states cookbook (#1707)
billchen-openai Mar 11, 2025
a7967b2
File Search with Responses (#1708)
pap-openai Mar 11, 2025
86145b3
added avatar and profile pic for Bill Chen (#1709)
billchen-openai Mar 11, 2025
2152f15
Add support scope disclaimer (#1713)
davidwu-openai Mar 12, 2025
3accc16
fixing typos file search (#1715)
pap-openai Mar 12, 2025
f68bdbd
Updating logprobs example and updating the model for the RAG database…
glojain Mar 12, 2025
4918ba9
adding languages changes on file search (#1716)
pap-openai Mar 13, 2025
e57e367
Add Cookbook: Using the OpenAI Agents SDK to Automate Stripe Dispute …
danbell-openai Mar 19, 2025
c1ff092
Update LICENSE
kwhinnery-openai Mar 19, 2025
72ed995
Update README.md
kwhinnery-openai Mar 19, 2025
70c790b
Update CONTRIBUTING.md
kwhinnery-openai Mar 19, 2025
4100fb9
One way translation to add Multi-Language One-Way Translation example…
erikakettleson-openai Mar 25, 2025
985d09d
One way translation - update images (#1735)
erikakettleson-openai Mar 25, 2025
6e847e7
typo fix (#1737)
erikakettleson-openai Mar 26, 2025
914984b
Building a Voice Assistant with the Agents SDK (#1734)
rupert-openai Mar 27, 2025
bdba433
Assistant voice agent (#1739)
rupert-openai Mar 27, 2025
df01a46
Responses API tool orchestration using RAG (#1747)
shikhar-cyber Mar 28, 2025
5f405da
Responses API tool orchestration RAG image (#1748)
shikhar-cyber Mar 29, 2025
b3e846c
Typo fix on multi language article name (#1755)
rupert-openai Mar 31, 2025
9500f50
updated text content within responses API (#1756)
shikhar-cyber Apr 1, 2025
e82d689
Add evalsapi notebooks (#1762)
josiah-openai Apr 8, 2025
fc24b1c
Gpt action salesforce gong (#1761)
girishd Apr 10, 2025
9d7563e
fix_typo (#1766)
pap-openai Apr 11, 2025
d4604f1
Update the multiclass classification cookbook to use the new API and …
vishnu-oai Apr 11, 2025
1d08c65
Update Orchestrating_agents.ipynb: typo (#1758)
joedevon Apr 11, 2025
1cf38d9
Update the authors and registry (#1767)
vishnu-oai Apr 11, 2025
29828eb
Add gpt4.1 prompting guide (#1771)
nm-openai Apr 14, 2025
6a47d53
Update registry.yaml
kwhinnery-openai Apr 14, 2025
9f6939a
4.1 prompting guide updates: update apply-patch code (#1772)
nm-openai Apr 14, 2025
dbf884f
julian-openai author info update (#1775)
julian-openai Apr 15, 2025
acfa8ab
Add dist/ and lib/ folders needed by Realtime translation example (#1…
erikakettleson-openai Apr 15, 2025
dc8f255
GPT-4.1 Guide updates (#1776)
nm-openai Apr 15, 2025
fd9a59a
Updating vision cookbook to 4.1 (#1783)
rzhao-openai Apr 23, 2025
8e89464
Updating vision cookbook to render properly (#1787)
rzhao-openai Apr 23, 2025
d97f107
Update model for hyde/chroma cookbook (#1785)
brandonbaker-openai Apr 23, 2025
7fc4691
Add Image Gen cookbook (#1788)
katia-openai Apr 23, 2025
5c972eb
Update registry.yaml
katia-openai Apr 23, 2025
e3b6d8c
Update images in ImageGen cookbook (#1789)
katia-openai Apr 23, 2025
242c21f
Update imagegen cookbook (#1790)
katia-openai Apr 23, 2025
4bcbff3
Resolving merge conflict in main (#1791)
rzhao-openai Apr 23, 2025
48e5e70
Updated glorp images in imagegen cookbook (#1792)
katia-openai Apr 24, 2025
59118d1
Update Generate_Images_With_GPT_Image.ipynb
kwhinnery-openai Apr 25, 2025
6a0175d
Added example notebook for handling function calls with reasoning mod…
tompakeman-oai Apr 28, 2025
8fd8b9b
Added example notebook for handling function calls with reasoning mod…
tompakeman-oai Apr 28, 2025
3c2a4de
Add PR action to validate notebook format (#1793)
brandonbaker-openai Apr 28, 2025
69027a4
Tompakeman (#1797)
tompakeman-oai Apr 28, 2025
5d64d5d
Removing broken link in cookbook example (#1794)
robtinn Apr 29, 2025
cb43eb4
Bugfix for reasoning-function-call notebook (#1800)
tompakeman-oai Apr 30, 2025
22a8c6c
update user to registered author for vision 4.1 cookbook (#1804)
rzhao-openai May 1, 2025
66a31c1
Adding ElatoAI project — OpenAI Realtime API Speech on ESP32 devices …
akdeb May 2, 2025
d64e85b
Updating assets and links for ElatoAI Arduino Speech AI agents (#1811)
akdeb May 5, 2025
c69057d
Model Selection Cookbook (#1814)
shikhar-cyber May 5, 2025
d40a721
model selection cookbook with image updates (#1815)
shikhar-cyber May 5, 2025
554c7ed
Add cookbook notebook for parallel agents (#1803)
brandonbaker-openai May 6, 2025
ecac168
Update model_selection_guide.ipynb (#1816)
shikhar-cyber May 6, 2025
02367f5
Update model_selection_guide.ipynb (#1818)
shikhar-cyber May 6, 2025
f65717b
Fixing the typo (#1817)
andrew-hesse May 6, 2025
80251ba
Small fixes for reading the input files correctly and to the OpenAIFi…
robtinn May 7, 2025
54659c5
Minh/speech transcription tutorial (#1807)
minh-hoque May 7, 2025
bd2706f
Update model selection cookbook with formatting changes, rerun legal …
kashyapm-tribe May 7, 2025
df923f4
model selection code typo (#1820)
shikhar-cyber May 7, 2025
b5fa1f6
Numbering fix (#1821)
kashyapm-tribe May 7, 2025
9706577
Fix broken link to Snowflake middleware cookbook (#1822)
oai-evanweiss May 7, 2025
032a3d2
Fix signup link in README (#1825)
brandonbaker-openai May 9, 2025
e60a425
Model Selection Guide minor formatting fixes (#1824)
kashyapm-tribe May 9, 2025
179e007
Fix typo in third paragraph (#1773)
danerickson-at May 9, 2025
5331a79
docs: fix duplication in registry.yaml (#1698)
ykoh42 May 9, 2025
0a2c853
Fix typo: Remove extra quotes from triple quotes (#1812)
ftnext May 9, 2025
bd2b08e
Fix: Replace U+201C(“) and U+201D(”) with U+0022(") in XML and JSON (…
Benshi May 9, 2025
2deb1d9
Update README.md (#1826)
ReNothingg May 9, 2025
b5c4ab2
Remove duplicate os import (#1671)
rememberlenny May 9, 2025
07fadb6
Fix the incorrect string formatting and ensure the subcategories vari…
yuichielectric May 9, 2025
e3153dd
Bump @babel/runtime from 7.25.6 to 7.27.0 in /examples/voice_solution…
dependabot[bot] May 9, 2025
af6e3d7
Bump path-to-regexp and express in /examples/voice_solutions/one_way_…
dependabot[bot] May 9, 2025
c0d1415
Bump http-proxy-middleware from 2.0.6 to 2.0.9 in /examples/voice_sol…
dependabot[bot] May 9, 2025
2b3cae7
Bump react-router and react-router-dom in /examples/voice_solutions/o…
dependabot[bot] May 9, 2025
88cc4ae
Bump rollup from 2.79.1 to 2.79.2 in /examples/voice_solutions/one_wa…
dependabot[bot] May 9, 2025
c294418
Bump axios from 1.7.9 to 1.8.2 in /examples/voice_solutions/one_way_t…
dependabot[bot] May 9, 2025
fe0d1f9
Bump nanoid from 3.3.7 to 3.3.11 in /examples/voice_solutions/one_way…
dependabot[bot] May 9, 2025
26c2496
Bump @babel/helpers from 7.25.6 to 7.27.0 in /examples/voice_solution…
dependabot[bot] May 9, 2025
5ab3df4
Bump cross-spawn from 7.0.3 to 7.0.6 in /examples/voice_solutions/one…
dependabot[bot] May 9, 2025
df31b9f
Minh/s2s context summary (#1813)
minh-hoque May 10, 2025
e374778
Better performance from reasoning models using the Responses API (#1836)
billchen-openai May 14, 2025
9e44402
Updated Reasoning Function Call cookbook to include websearch example…
tompakeman-oai May 14, 2025
7c3a2a7
Fix broken cell in prompting guide (#1842)
robtinn May 14, 2025
81f8df4
Pakeman (#1843)
tompakeman-oai May 14, 2025
4596343
Responses in evals!
willhath-openai May 14, 2025
56f72c5
Evalsapi -> evals api (#1845)
willhath-openai May 16, 2025
2d8d01e
tightened up language to make the responses cookbooks more readable. …
billchen-openai May 16, 2025
024c433
Image Understanding with RAG Cookbook (#1838)
robtinn May 19, 2025
09c7309
Prod charu tools (#1850)
charu-openai May 21, 2025
97e80fa
Add rft cookbook for healthbench (#1849)
robtinn May 23, 2025
ab40061
rft_cookbook material (#1852)
theophile-oai May 23, 2025
b2feff9
added o3/o4-mini function calling guide (#1857)
billchen-openai May 27, 2025
26a7b5a
added the missing encrypted content to the code example (#1861)
billchen-openai May 27, 2025
125f9cd
Rendering updates for the RFT with model grader cookbook (#1862)
theophile-oai May 27, 2025
a140048
author typo correction (#1863)
theophile-oai May 27, 2025
9825f03
Small updates to rft healthbench (#1858)
robtinn May 28, 2025
e1d2bc0
Evaluating OpenAI Agents (#1752)
jannikmaierhoefer May 28, 2025
3fde156
Fix title and tags (#1866)
lspacagna-oai May 28, 2025
c142c66
Multi-Agent Collaboration Notebook (#1859)
rajpathak-openai May 28, 2025
8134421
Update registry.yaml (#1867)
rajpathak-openai May 28, 2025
8a8f76a
Archive older articles (#1865)
lspacagna-oai May 29, 2025
3ca63e3
Fixing image formatting (#1871)
rajpathak-openai May 29, 2025
f0cc298
Publish Practical guide to data-intensive apps with the Realtime API …
alistair-openai May 29, 2025
2d9253a
fix typo in custom image embedding example (#1856)
collingreen May 30, 2025
2fc6dbb
Add “Selecting a Model Based on Stripe Conversion” notebook (#1873)
joshbickett Jun 1, 2025
d45864b
Fixes diagram.svg render (#1880)
shyamal-anadkat Jun 2, 2025
e5aac77
Fixes stripe eval diagram render (#1881)
shyamal-anadkat Jun 2, 2025
f92933b
Eval driven system design cookbook (#1875)
shikhar-cyber Jun 2, 2025
ded18e4
Minor updates and images addition to cookbook (#1882)
shikhar-cyber Jun 3, 2025
475ed4c
registry updates (#1883)
shikhar-cyber Jun 3, 2025
7cbff65
Add examples for structured outputs and tool calling with evals. (#1888)
josiah-openai Jun 9, 2025
3766fa2
Cookbook updates (#1889)
shikhar-cyber Jun 10, 2025
075c02b
openai_evals_web_search_reg_images_update (#1890)
shikhar-cyber Jun 10, 2025
bc8dcb4
Code-update-examples-refinement (#1891)
shikhar-cyber Jun 10, 2025
8d3e837
code-tool-eval-cookbook (#1892)
shikhar-cyber Jun 11, 2025
4157b8e
Small link correction to rft healthbench cookbook (#1896)
robtinn Jun 13, 2025
84faee6
added some notes on addressing lazy behavior (#1902)
billchen-openai Jun 15, 2025
6424c85
rft.ipynb: typo updates (#1903)
theophile-oai Jun 16, 2025
7379f40
Update elastic search cookbook to use latest API (#1899)
robtinn Jun 16, 2025
cc63685
fixed repetition (#1906)
guillaume-openai Jun 17, 2025
4d85c12
mcp powered voice agents (#1897)
shikhar-cyber Jun 17, 2025
569af89
mcp powered agents registry (#1907)
shikhar-cyber Jun 17, 2025
6bccfd9
improve mcp_eval notebook (#1901)
CorwinCheung Jun 17, 2025
a57c80e
Alowden/fine tuning techniques dpo (#1900)
alexl-oai Jun 18, 2025
b35868e
Fix: update my author profile (#1911)
dwigg-openai Jun 20, 2025
7299c12
Deep research api (#1921)
alwell-kevin Jun 26, 2025
012c79d
Deep research api (#1922)
alwell-kevin Jun 26, 2025
7a80775
Deep research api (#1923)
alwell-kevin Jun 26, 2025
c7c7905
added prompt migration notebook (#1919)
minh-hoque Jun 26, 2025
0087cdc
[WIP] add new cookbook for codex-jira (#1910)
narenoai Jun 26, 2025
2b673d6
fix agents image flow (#1926)
alwell-kevin Jun 27, 2025
5d2459f
Update introduction_to_deep_research_api.ipynb (#1924)
glojain Jun 27, 2025
5d9219a
fix images display issue for codex <> jira cookbook (#1925)
narenoai Jun 27, 2025
0f26f5b
New cookbook - Supply-Chain Copilot with OpenAI Agent SDK and Databri…
lara-openai Jul 8, 2025
6dfb792
Building a Supply-Chain Copilot with OpenAI Agent SDK and Databricks …
lara-openai Jul 8, 2025
e7be973
Dynamic Egress IP Support for Snowflake Direct Integration (#1931)
ray-openai Jul 11, 2025
59ad325
Updates on the RFT with model graders notebook. (#1943)
theophile-oai Jul 13, 2025
860c3e8
Fix: update notebook to langfuse sdk v3 (#1908)
jannikmaierhoefer Jul 14, 2025
bdb3aa9
Added delta for Prompt Migration Cookbook (#1942)
CorwinCheung Jul 14, 2025
4736a0c
Optimize Prompts Cookbook (#1939)
CorwinCheung Jul 15, 2025
375f987
Register Notebook (#1947)
CorwinCheung Jul 15, 2025
070743e
MCP Supply Chain Cookbook Improvements (#1944)
lara-openai Jul 15, 2025
59439eb
Add high input fidelity for image generation cookbook (#1951)
katia-openai Jul 16, 2025
45de044
Update high input fidelity cookbook (#1952)
katia-openai Jul 16, 2025
7ea62a4
Update input fidelity cookbook (#1953)
katia-openai Jul 16, 2025
b4abf3f
Update markdown in input fidelity cookbook (#1954)
katia-openai Jul 16, 2025
f25c49d
Update markdown in input fidelity cookbook (#1956)
katia-openai Jul 16, 2025
6ba23ee
Evals API - Image Input Cookbook (#1950)
daisyshe-oai Jul 16, 2025
431f9c0
add evals tag to cookbook (#1957)
daisyshe-oai Jul 16, 2025
c9a71f8
Update input fidelity cookbook (#1959)
katia-openai Jul 17, 2025
1acbbd1
fix build
katia-openai Jul 17, 2025
ecea710
Update registry (#1960)
katia-openai Jul 17, 2025
93254d7
Revert commits (#1962)
katia-openai Jul 17, 2025
96f8491
Input fidelity cookbook fix md (#1963)
katia-openai Jul 17, 2025
45dd652
Small Cookbook Changes (#1948)
CorwinCheung Jul 17, 2025
a98894e
Temporal agents cookbook (#1970)
shikhar-cyber Jul 23, 2025
6d89e11
Image update to temporal agents (#1973)
shikhar-cyber Jul 25, 2025
843a8bc
add evals tag to evals-api cookbooks (#1964)
daisyshe-oai Jul 29, 2025
ad69166
[Fix] Evals Img Cookbook - API grader link (#1978)
daisyshe-oai Jul 31, 2025
5567658
Update Image Evals Cookbook w/ Logs info (#1981)
daisyshe-oai Aug 4, 2025
f05596f
Adding gpt-oss guides (#1982)
dkundel-openai Aug 5, 2025
3d32e44
Add NVIDIA TensorRT-LLM optimization guide for GPT-OSS models (#1983)
jayrodge Aug 5, 2025
06a6b30
fix path (#1985)
pap-openai Aug 5, 2025
a78a055
Improve NVIDIA TensorRT-LLM guide formatting and add Brev integration…
jayrodge Aug 5, 2025
33cae36
Update run-vllm.md: pin vllm version (#1990)
volsgd Aug 5, 2025
bede3df
Correct variable name from `system_message` to `developer_message` an…
mkchaitanya03 Aug 5, 2025
a9653c8
Small typo in run-vllm.md (#1986)
sethkimmel3 Aug 5, 2025
bb985a4
Correct Harmony example developer message (#1984)
geoffhill Aug 6, 2025
12c76b6
Fix Ollama link in run-vllm.md (#1987)
mrefish Aug 6, 2025
ff1b0e8
Split 2 combined commands (#1988)
yhdesai Aug 6, 2025
6ac62d9
Update run-gpt-oss-locally-ollama file to point to the correct endpoi…
Srijan-D Aug 6, 2025
4e6d8fa
Nits in "Fine-tuning a Multilingual Reasoner with Hugging Face" recip…
sergiopaniego Aug 6, 2025
5204b75
gpt-oss-20b on Google Colab (#2003)
pcuenca Aug 6, 2025
6f97a92
updating title on responses file search cookbook (#2004)
pap-openai Aug 6, 2025
0775bef
gpt-5-cookbooks (#2013)
anoop-openai Aug 7, 2025
85ec8bf
fix path (#2014)
pap-openai Aug 7, 2025
201cd5e
Fixgptpath (#2015)
pap-openai Aug 7, 2025
625e2ff
minor updates (#2016)
msingh-openai Aug 7, 2025
c4b4514
small changes (#2017)
anoop-openai Aug 7, 2025
5baa9f5
sentence casing (#2018)
Lupie Aug 7, 2025
356d169
prompt-opt-notebook (#2023)
rajpathak-openai Aug 7, 2025
e6b0116
Prompt Migration Revisions for image and table rendering and links (#…
CorwinCheung Aug 7, 2025
ac04873
Run gpt-oss locally in LM Studio (#2006)
yagil Aug 7, 2025
37c8c85
Fix Missing imports in openai-harmony.md example code (#2010)
Howe829 Aug 7, 2025
9bcd731
Update run-transformers.md (#2000)
weedge Aug 7, 2025
441b38f
Fix SyntaxError: unmatched ')' in openai-harmony.md example code (#2007)
DIYer22 Aug 7, 2025
ef470b5
Update prompt-optimization-cookbook.ipynb with formatting improvement…
rajpathak-openai Aug 7, 2025
c00af0b
lowercase another sneaky capital P (#2032)
Lupie Aug 8, 2025
3a73502
fix some style nits (#2031)
Lupie Aug 8, 2025
9b3868e
fix typos + remove repeating sentences + fix hyperlinks (#2028)
danishnawab Aug 8, 2025
cfeabe1
Fix LM Studio article (#2034)
dkundel-openai Aug 8, 2025
28881e5
add new verifying gpt-oss guide (#2044)
dkundel-openai Aug 11, 2025
2fa591f
openai-harmony: remove unnecessary line from basic system prompt (#2045)
volsgd Aug 11, 2025
0b65c71
Refactor Temporal KG cookbook: remove ToC, merge Appendix, and fix br…
dwigg-openai Aug 12, 2025
03303a9
Some fixes and updates to run-colab guide (#2009)
pcuenca Aug 12, 2025
f02e1dc
fix (#2049)
CorwinCheung Aug 12, 2025
7da367e
Update prompt-optimization-cookbook.ipynb to enhance clarity and form…
rajpathak-openai Aug 12, 2025
a8d1bbd
Update transformers to avoid triton errors. (#2051)
Vaibhavs10 Aug 13, 2025
30d1d6d
Replace static image with video in prompt-optimization-cookbook.ipynb…
rajpathak-openai Aug 13, 2025
f09d53a
Update prompt-optimization-cookbook.ipynb to replace video with GIF a…
rajpathak-openai Aug 13, 2025
1172aba
Add cookbook for audio evals (#2055)
hendrytl Aug 14, 2025
df247b1
Update openai-harmony.md (#2057)
dkundel-openai Aug 14, 2025
ecaeb8a
move nvidia guide (#2064)
dkundel-openai Aug 15, 2025
25b5b02
Update openai-harmony.md (#2067)
dkundel-openai Aug 15, 2025
913f989
Update subtags for gpt-oss content (#2073)
dkundel-openai Aug 18, 2025
594ec0e
Fix typo (#2043)
anderspitman Aug 18, 2025
872c3ec
docs: unify get weather function name in openai-harmony for consisten…
kibitzing Aug 18, 2025
30fba98
Updated 'How to call functions with chat models' cookbook to use GPT-…
jordanellis-oai Aug 20, 2025
97aaf22
Resolve Python logger warnings (#1848)
emmanuel-ferdman Aug 21, 2025
40dbe6c
Update evals receipt cookbook to reflect eval ZDR support (#2084)
HSG-OAI Aug 25, 2025
a467cf9
Update to use model grader (#2085)
hendrytl Aug 26, 2025
1a28aa7
Update authors.yaml (#2088)
heejingithub Aug 26, 2025
b03eceb
Add KR bilingual fine-tuning notebook (#2086)
heejingithub Aug 26, 2025
7b446cd
Update registry.yaml (#2089)
dkundel-openai Aug 26, 2025
e0ff749
Fix the template repo URL (GPT Actions library - AWS Middleware) (#1750)
seratch Aug 28, 2025
2fdcbb4
Update titles in codex+jira cookbook (#2093)
pap-openai Aug 28, 2025
b46fe3c
Minh/realtime prompting guide (#2094)
minh-hoque Aug 28, 2025
b8e5c3a
Update dates and authors in registry.yaml for consistency (#2095)
minh-hoque Aug 28, 2025
7a61dec
Update Realtime Prompting Guide to use MP3 audio files and adjust exe…
minh-hoque Aug 28, 2025
a904483
Update to latest audio model (#2098)
hendrytl Aug 28, 2025
229e924
Create secure_quality_gitlab.md (#2097)
jonlim-openai Aug 29, 2025
6480e4c
Update registry.yaml (#2099)
jonlim-openai Aug 29, 2025
d731f2f
Update markdown for sidebar, move images to accessible path (#2100)
charlie-openai Aug 29, 2025
4730fa6
fix link to eval guide (#2107)
hendrytl Sep 2, 2025
64c8d0d
Update image understanding cookbook to use gpt-5 (#2122)
robtinn Sep 8, 2025
7433ba1
New cookbook: Context Engineering - Short-Term Memory Management with…
emre-openai Sep 10, 2025
cf19ff4
Minh/formatting (#2141)
minh-hoque Sep 14, 2025
6d92d29
Ai
balajirajput96 Sep 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"image": "mcr.microsoft.com/devcontainers/universal:2",
"features": {}
}
3 changes: 3 additions & 0 deletions .github/registry_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
"date": {
"type": "string",
"format": "date"
},
"archived": {
"type": "boolean"
}
},
"required": ["title", "path", "tags", "authors"],
Expand Down
61 changes: 61 additions & 0 deletions .github/scripts/check_notebooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
import subprocess
import sys
from pathlib import Path

import nbformat


def get_changed_notebooks(base_ref: str = "origin/main") -> list[Path]:
"""
Returns a list of changed notebook paths in the current git branch
compared to the specified base reference.
"""
result = subprocess.run(
["git", "diff", "--name-only", base_ref, "--", "*.ipynb"],
capture_output=True,
text=True,
check=True,
)
return [Path(line.strip()) for line in result.stdout.splitlines() if line.strip()]


def is_valid_notebook(path: Path) -> bool:
"""
Checks if the notebook at the given path is valid by attempting to read it
with nbformat.
"""
try:
with open(path, "r", encoding="utf-8") as f:
nbformat.read(f, as_version=4)
return True
except Exception as e:
print(f"{path}: INVALID - {e}")
return False


def main() -> None:
"""
Main function to validate the format of changed notebooks.
"""
changed_notebooks = get_changed_notebooks()
if not changed_notebooks:
print("No changed .ipynb files to validate.")
sys.exit(0)

print(f"Validating {len(changed_notebooks)} notebook(s)...")
errors = 0
for path in changed_notebooks:
if not path.exists():
continue # skip deleted files
if not is_valid_notebook(path):
errors += 1

if errors:
print(f"{errors} invalid notebook(s) found.")
sys.exit(1)
else:
print("All changed notebooks are valid.")


if __name__ == "__main__":
main()
25 changes: 25 additions & 0 deletions .github/workflows/validate-notebooks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Validate Changed Notebooks

on: [pull_request]

jobs:
validate-notebooks:
name: Validate Notebooks
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0 # needed for git diff to work

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'

- name: Install dependencies
run: pip install nbformat

- name: Validate changed .ipynb files
run: python .github/scripts/check_notebooks.py
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,12 @@ dmypy.json
*.DS_Store
tmp_*
examples/fine-tuned_qa/local_cache/*
examples/multimodal/.local_cache/*

# PyCharm files
.idea/
.cursorignore

# VS Code files
.vscode/
.cursorignore
49 changes: 4 additions & 45 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,48 +1,7 @@
# Welcome, AI Chef
# Contributing the the cookbook

The OpenAI Cookbook is a community-driven resource aimed at sharing knowledge in a way that is accessible, engaging, and enriching for all AI builders.
The OpenAI Cookbook is a collection of useful patterns and examples of working with the OpenAI platform, provided as a community resource.

Before contributing, read through the existing issues and pull requests to see if someone else is already working on something similar. That way you can avoid duplicating efforts.
> Contributions are reviewed on a best-effort basis - we can't provide guarantees around when or if content contributions will be reviewed or merged.

## What makes a good contribution?

Generally, we have found that the best contributions to the Cookbook are **useful**, **novel** or **creative**, or a combination of these.

- **Useful:** Involves concepts or techniques that can be applied broadly and often, and can translate to practical use-cases and solving real-world problems. If you're doing something often, chances are others are too, and having reusable examples to reference can be very helpful.
- **Novel:** Showcases new developments or techniques. Look out for new research on how to best use LLMs, or new models and capabilities in the API.
- **Creative:** Uses LLMs in creative and innovative ways, or combines multiple APIs and tools in novel ways.

Additionally, we strive to maintain a **neutral** tone, and aim for **high quality** writing.

- **Neutral:** Maintains a neutral stance on tools and products. While it's natural to have preferences for particular tools, a good guide avoids over-evangelizing or marketing specific products, ensuring integrity and inclusivity.
- **High quality:** Well structured, clear and complete. Writing good content ensures others can fully benefit from it. See the rubric below for more details on how we assess the quality of submissions to the Cookbook.

## Rubric

To ensure the quality of submissions, we have established a rubric that assesses each contribution on various areas. The purpose of this rating system is to maintain a high standard of quality, relevance, and uniqueness. Each area is rated on a scale from 1 to 4. Contributions that score lower than a 3 in any of the areas will generally be rejected.

We encourage contributors to familiarize themselves with this rubric before writing content. Understanding the criteria not only increases the chances of your contribution being accepted, but also helps in creating a resource that is comprehensive, clear, and beneficial for all users.

For additional advice on writing good documentation, refer to [What Makes Documentation Good](https://cookbook.openai.com/what_makes_documentation_good).

| Criteria | Description | Score |
| ------------ | --------------------------------------------------------------------------------------------------- | ----- |
| Relevance | Is the content related to building with OpenAI technologies? Is it useful to others? | |
| Uniqueness | Does the content offer new insights or unique information compared to existing documentation? | |
| Clarity | Is the language easy to understand? Are things well-explained? Is the title clear? | |
| Correctness | Are the facts, code snippets, and examples correct and reliable? Does everything execute correctly? | |
| Conciseness | Is the content concise? Are all details necessary? Can it be made shorter? | |
| Completeness | Is the content thorough and detailed? Are there things that weren’t explained fully? | |
| Grammar | Are there grammatical or spelling errors present? | |

### Breakdown

| Criteria | 4 | 3 | 2 | 1 |
| ------------ | --------------------------------------------- | ----------------------------------------- | --------------------------------------------- | ------------------------------------------ |
| Relevance | Relevant and useful. | Relevant but not very useful. | Tangentially relevant. | Not relevant. |
| Uniqueness | Completely unique with fresh insights. | Unique with minor overlaps. | Some unique aspects, but significant overlap. | Many similar guides/examples. |
| Clarity | Clear language and structure. | Clear language, unclear structure. | Some sections unclear. | Confusing and unclear. |
| Correctness | Completely error free. | Code works, minor improvements needed. | Few errors and warnings. | Many errors, code doesn't execute. |
| Conciseness | Cannot be reduced in any section, or overall. | Mostly short, but could still be reduced. | Some long sections, and/or long overall. | Very long sections and overall, redundant. |
| Completeness | Complete and detailed. | Mostly complete, minor additions needed. | Lacks some explanations. | Missing significant portions. |
| Grammar | Perfect grammar. | Correct grammar, few typos. | Some spelling/grammatical errors. | Numerous spelling/grammatical errors. |
Stay tuned to this page for further guidance on cookbook contributions as they become available 🙏
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 OpenAI
Copyright (c) 2025 OpenAI

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
16 changes: 3 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,12 @@

> ✨ Navigate at [cookbook.openai.com](https://cookbook.openai.com)

Example code and guides for accomplishing common tasks with the [OpenAI API](https://platform.openai.com/docs/introduction). To run these examples, you'll need an OpenAI account and associated API key ([create a free account here](https://beta.openai.com/signup)). Set an environment variable called `OPENAI_API_KEY` with your API key. Alternatively, in most IDEs such as Visual Studio Code, you can create an `.env` file at the root of your repo containing `OPENAI_API_KEY=<your API key>`, which will be picked up by the notebooks.
Example code and guides for accomplishing common tasks with the [OpenAI API](https://platform.openai.com/docs/introduction). To run these examples, you'll need an OpenAI account and associated API key ([create a free account here](https://platform.openai.com/signup)). Set an environment variable called `OPENAI_API_KEY` with your API key. Alternatively, in most IDEs such as Visual Studio Code, you can create an `.env` file at the root of your repo containing `OPENAI_API_KEY=<your API key>`, which will be picked up by the notebooks.

Most code examples are written in Python, though the concepts can be applied in any language.

For other useful tools, guides and courses, check out these [related resources from around the web](https://cookbook.openai.com/related_resources).

## Contributing
## License

The OpenAI Cookbook is a community-driven resource. Whether you're submitting an idea, fixing a typo, adding a new guide, or improving an existing one, your contributions are greatly appreciated!

Before contributing, read through the existing issues and pull requests to see if someone else is already working on something similar. That way you can avoid duplicating efforts.

If there are examples or guides you'd like to see, feel free to suggest them on the [issues page](https://github.com/openai/openai-cookbook/issues).

If you'd like to contribute new content, make sure to read through our [contribution guidelines](/CONTRIBUTING.md). We welcome high-quality submissions of new examples and guides, as long as they meet our criteria and fit within the scope of the cookbook.

The contents of this repo are automatically rendered into [cookbook.openai.com](https://cookbook.openai.com) based on [registry.yaml](/registry.yaml).

[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=468576060&machine=basicLinux32gb&location=EastUs)
MIT License
Loading