[PR #2218] [MERGED] docs: update OpenAI model references from gpt-4o to gpt-4.1 #2235

Closed
opened 2026-02-17 17:23:12 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/2218
Author: @bwhiting2356
Created: 1/13/2026
Status: Merged
Merged: 1/31/2026
Merged by: @bwhiting2356

Base: mainHead: update-openai-models-gpt4o-to-gpt41


📝 Commits (8)

  • 67bbda4 docs: update OpenAI model references from gpt-4o to gpt-4.1
  • fb62b33 fix: correct dated model snapshots gpt-4.1-mini-2025-04-14
  • f5c1eef fix: preserve gpt-4o-audio-preview model name
  • 614ef95 fix: update missed gpt-4o-mini code example
  • 1011fd2 fix: preserve documentation prose about OpenAI model families
  • 183563b fix: typo "it will is" → "it is"
  • 51314c6 fix: preserve API response metadata model_name
  • bf22caf Merge main into update-openai-models-gpt4o-to-gpt41

📊 Changes

177 files changed (+628 additions, -628 deletions)

View changed files

📝 src/langsmith/access-current-span.mdx (+2 -2)
📝 src/langsmith/add-metadata-tags.mdx (+4 -4)
📝 src/langsmith/analyze-an-experiment.mdx (+1 -1)
📝 src/langsmith/annotate-code.mdx (+5 -5)
📝 src/langsmith/code-evaluator-sdk.mdx (+1 -1)
📝 src/langsmith/cost-tracking.mdx (+1 -1)
📝 src/langsmith/define-target-function.mdx (+4 -4)
📝 src/langsmith/evaluate-chatbot-tutorial.mdx (+4 -4)
📝 src/langsmith/evaluate-complex-agent.mdx (+6 -6)
📝 src/langsmith/evaluate-graph.mdx (+1 -1)
📝 src/langsmith/evaluate-llm-application.mdx (+8 -8)
📝 src/langsmith/evaluate-on-intermediate-steps.mdx (+6 -6)
📝 src/langsmith/evaluate-pairwise.mdx (+1 -1)
📝 src/langsmith/evaluate-rag-tutorial.mdx (+20 -20)
📝 src/langsmith/evaluate-with-attachments.mdx (+4 -4)
📝 src/langsmith/evaluation-async.mdx (+2 -2)
📝 src/langsmith/filter-experiments-ui.mdx (+3 -3)
📝 src/langsmith/generative-ui-react.mdx (+2 -2)
📝 src/langsmith/langchain-runnable.mdx (+3 -3)
📝 src/langsmith/legacy-trace-with-vercel-ai-sdk.mdx (+1 -1)

...and 80 more files

📄 Description

Summary

Updates code examples from gpt-4ogpt-4.1 and gpt-4o-minigpt-4.1-mini across ~130 files.

Why GPT-4.1?

  • Better performance: 54.6% vs 33.2% on SWE-bench (coding)
  • Larger context: 1M tokens vs 128K
  • Drop-in replacement: Same API, same parameters—safe for bulk update

GPT-5 would be riskier due to different parameter handling (temperature, etc.).

Source: OpenAI GPT-4.1 Announcement

Edge cases

Case Handling
Dated snapshots (gpt-4o-mini-2024-07-18) Updated to gpt-4.1-mini-2025-04-14
Audio model (gpt-4o-audio-preview) Preserved (specific variant)
Documentation prose about OpenAI models Preserved
API response metadata (gpt-4o-2024-05-13) Preserved

Bonus

Fixed pre-existing typo: "it will is" → "it is" in premai.mdx


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/docs/pull/2218 **Author:** [@bwhiting2356](https://github.com/bwhiting2356) **Created:** 1/13/2026 **Status:** ✅ Merged **Merged:** 1/31/2026 **Merged by:** [@bwhiting2356](https://github.com/bwhiting2356) **Base:** `main` ← **Head:** `update-openai-models-gpt4o-to-gpt41` --- ### 📝 Commits (8) - [`67bbda4`](https://github.com/langchain-ai/docs/commit/67bbda4612d43453a51254dfa75fc2793e5f8090) docs: update OpenAI model references from gpt-4o to gpt-4.1 - [`fb62b33`](https://github.com/langchain-ai/docs/commit/fb62b33ce520b5d69572db431f14c526b6611e62) fix: correct dated model snapshots gpt-4.1-mini-2025-04-14 - [`f5c1eef`](https://github.com/langchain-ai/docs/commit/f5c1eef298bfb95a3bbcb4b51722b31588fc7ac2) fix: preserve gpt-4o-audio-preview model name - [`614ef95`](https://github.com/langchain-ai/docs/commit/614ef954854d5461b0462b74e588f5f8c3ea2b94) fix: update missed gpt-4o-mini code example - [`1011fd2`](https://github.com/langchain-ai/docs/commit/1011fd2d3a557d73af524b5e6efe3521b8f1df82) fix: preserve documentation prose about OpenAI model families - [`183563b`](https://github.com/langchain-ai/docs/commit/183563b90bc543efb5324bd096c7309fd1970910) fix: typo "it will is" → "it is" - [`51314c6`](https://github.com/langchain-ai/docs/commit/51314c6329be49414a266eaa96e37a22cd968d4c) fix: preserve API response metadata model_name - [`bf22caf`](https://github.com/langchain-ai/docs/commit/bf22caf444d1413228f44436853b2e9dd1ab78e7) Merge main into update-openai-models-gpt4o-to-gpt41 ### 📊 Changes **177 files changed** (+628 additions, -628 deletions) <details> <summary>View changed files</summary> 📝 `src/langsmith/access-current-span.mdx` (+2 -2) 📝 `src/langsmith/add-metadata-tags.mdx` (+4 -4) 📝 `src/langsmith/analyze-an-experiment.mdx` (+1 -1) 📝 `src/langsmith/annotate-code.mdx` (+5 -5) 📝 `src/langsmith/code-evaluator-sdk.mdx` (+1 -1) 📝 `src/langsmith/cost-tracking.mdx` (+1 -1) 📝 `src/langsmith/define-target-function.mdx` (+4 -4) 📝 `src/langsmith/evaluate-chatbot-tutorial.mdx` (+4 -4) 📝 `src/langsmith/evaluate-complex-agent.mdx` (+6 -6) 📝 `src/langsmith/evaluate-graph.mdx` (+1 -1) 📝 `src/langsmith/evaluate-llm-application.mdx` (+8 -8) 📝 `src/langsmith/evaluate-on-intermediate-steps.mdx` (+6 -6) 📝 `src/langsmith/evaluate-pairwise.mdx` (+1 -1) 📝 `src/langsmith/evaluate-rag-tutorial.mdx` (+20 -20) 📝 `src/langsmith/evaluate-with-attachments.mdx` (+4 -4) 📝 `src/langsmith/evaluation-async.mdx` (+2 -2) 📝 `src/langsmith/filter-experiments-ui.mdx` (+3 -3) 📝 `src/langsmith/generative-ui-react.mdx` (+2 -2) 📝 `src/langsmith/langchain-runnable.mdx` (+3 -3) 📝 `src/langsmith/legacy-trace-with-vercel-ai-sdk.mdx` (+1 -1) _...and 80 more files_ </details> ### 📄 Description ## Summary Updates code examples from `gpt-4o` → `gpt-4.1` and `gpt-4o-mini` → `gpt-4.1-mini` across ~130 files. ## Why GPT-4.1? - **Better performance**: 54.6% vs 33.2% on SWE-bench (coding) - **Larger context**: 1M tokens vs 128K - **Drop-in replacement**: Same API, same parameters—safe for bulk update GPT-5 would be riskier due to different parameter handling (`temperature`, etc.). Source: [OpenAI GPT-4.1 Announcement](https://openai.com/index/gpt-4-1/) ## Edge cases | Case | Handling | |------|----------| | Dated snapshots (`gpt-4o-mini-2024-07-18`) | Updated to `gpt-4.1-mini-2025-04-14` | | Audio model (`gpt-4o-audio-preview`) | Preserved (specific variant) | | Documentation prose about OpenAI models | Preserved | | API response metadata (`gpt-4o-2024-05-13`) | Preserved | ## Bonus Fixed pre-existing typo: "it will is" → "it is" in `premai.mdx` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-17 17:23:12 -05:00
yindo closed this issue 2026-02-17 17:23:12 -05:00
yindo changed title from [PR #2218] docs: update OpenAI model references from gpt-4o to gpt-4.1 to [PR #2218] [MERGED] docs: update OpenAI model references from gpt-4o to gpt-4.1 2026-06-05 18:17:24 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#2235