Skip to content

Conversation

@hntrl
Copy link
Member

@hntrl hntrl commented Oct 11, 2025

chatty-g cooked this one up. basic idea is that we specify what the "latest and greatest" model/model strings is this constants map once and use it throughout docs:

Summary

  • Introduce a reusable CONSTANTS_MAP registry so docs can reference shared strings with the $[...] token syntax.
  • Add a replace_constants preprocessor that swaps tokens for their mapped values, leaves unknown constants untouched, and supports escaping.
  • Wire the new substitution step into preprocess_markdown and cover the behaviour with focused unit tests, including a smoke test of the full markdown pipeline.

@github-actions github-actions bot added python For content related to the Python version of LangChain projects docs-infra tests labels Oct 11, 2025
@github-actions
Copy link
Contributor

Preview ID generated: preview-hunter-1760157103-689a012

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

Labels

docs-infra python For content related to the Python version of LangChain projects tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant