Skip to content

Conversation

@mdrxy
Copy link
Collaborator

@mdrxy mdrxy commented Oct 30, 2025

@github-actions github-actions bot added langchain For docs changes to LangChain oss javascript labels Oct 30, 2025
@github-actions
Copy link
Contributor

Mintlify preview ID generated: preview-mdrxyj-1761856082-43043e2

@mdrxy mdrxy marked this pull request as ready for review October 30, 2025 20:36
@mdrxy mdrxy requested a review from lnhsingh as a code owner October 30, 2025 20:36
Copilot AI review requested due to automatic review settings October 30, 2025 20:36
@mdrxy mdrxy merged commit 81cd271 into main Oct 30, 2025
11 checks passed
@mdrxy mdrxy deleted the mdrxy/js-infer-gpt5 branch October 30, 2025 20:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR standardizes model naming in JavaScript/TypeScript documentation examples by removing the explicit "openai:" provider prefix from model identifiers. The changes update all instances of "openai:gpt-5", "openai:gpt-5-nano" to use the shortened forms "gpt-5" and "gpt-5-nano" respectively. This aligns with LangChain's automatic provider inference feature documented in the codebase.

Key changes:

  • Removal of "openai:" prefix from model identifiers in code examples
  • Standardization across multiple documentation files (agents, structured output, streaming, RAG, messages, etc.)
  • Consistent with the documented behavior that model strings like "gpt-5" are automatically inferred as "openai:gpt-5"

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/oss/langchain/structured-output.mdx Updated 8 occurrences of model identifiers in structured output examples
src/oss/langchain/streaming.mdx Updated model identifier in streaming example
src/oss/langchain/sql-agent.mdx Updated 2 occurrences in SQL agent examples
src/oss/langchain/short-term-memory.mdx Updated 6 occurrences in memory management examples
src/oss/langchain/rag.mdx Updated 2 occurrences in RAG examples
src/oss/langchain/messages.mdx Updated 3 occurrences in message handling examples
src/oss/langchain/agents.mdx Updated 1 occurrence in basic agent example
src/oss/javascript/migrate/langchain-v1.mdx Updated 2 occurrences in migration guide examples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

javascript langchain For docs changes to LangChain oss

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants