[PR #2105] [MERGED] Fix model identifier format in code examples to match description #2132

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/2105
Author: @bwhiting2356
Created: 1/6/2026
Status: Merged
Merged: 1/6/2026
Merged by: @lnhsingh

Base: mainHead: fix-model-prefix-in-agents-docs


📝 Commits (1)

  • b7aa049 Fix model identifier format in code examples to match description

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 src/oss/langchain/agents.mdx (+2 -2)

📄 Description

Issue

The documentation describes model identifier strings with this format:

"A string that follows the format provider:model (e.g. openai:gpt-5)"

However, the code examples immediately below this description don't follow this format - they use "gpt-5" instead of "openai:gpt-5".

Changes

Updated both code examples to use the provider:model format as described:

  • Python: create_agent("gpt-5", tools=tools)create_agent("openai:gpt-5", tools=tools)
  • JavaScript: model: "gpt-5"model: "openai:gpt-5"

This makes the examples consistent with the format explanation in the paragraph above them.


🔄 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/2105 **Author:** [@bwhiting2356](https://github.com/bwhiting2356) **Created:** 1/6/2026 **Status:** ✅ Merged **Merged:** 1/6/2026 **Merged by:** [@lnhsingh](https://github.com/lnhsingh) **Base:** `main` ← **Head:** `fix-model-prefix-in-agents-docs` --- ### 📝 Commits (1) - [`b7aa049`](https://github.com/langchain-ai/docs/commit/b7aa049891fd60a865a2696ad8559c0bceeccb41) Fix model identifier format in code examples to match description ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/oss/langchain/agents.mdx` (+2 -2) </details> ### 📄 Description ## Issue The documentation describes model identifier strings with this format: > "A string that follows the format `provider:model` (e.g. openai:gpt-5)" However, the code examples immediately below this description don't follow this format - they use `"gpt-5"` instead of `"openai:gpt-5"`. ## Changes Updated both code examples to use the `provider:model` format as described: - Python: `create_agent("gpt-5", tools=tools)` → `create_agent("openai:gpt-5", tools=tools)` - JavaScript: `model: "gpt-5"` → `model: "openai:gpt-5"` This makes the examples consistent with the format explanation in the paragraph above them. --- <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:06 -05:00
yindo closed this issue 2026-02-17 17:23:06 -05:00
yindo changed title from [PR #2105] Fix model identifier format in code examples to match description to [PR #2105] [MERGED] Fix model identifier format in code examples to match description 2026-06-05 18:16:50 -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#2132