docs(oss): copy pass for models#285
Merged
Merged
Conversation
Hunter Lovell (hntrl)
requested review from
Brody (beklapko),
Kathryn May (katmayb) and
Lauren Hirata Singh (lnhsingh)
as code owners
August 29, 2025 23:35
Contributor
|
Preview ID generated: preview-hunter-1756510557-81f4949 |
| ## Basic usage | ||
| When working with models, each provider typically has its own unique way to interact with the model, which can make it difficult to swap between models and providers without significant code changes. | ||
|
|
||
| LangChain simplifies this by providing a common `ChatModel` abstraction for interacting with LLMs across all supported models & providers. If you're experimenting with different models, or building production agents, this lets you focus on the logic of your application rather than the implementation details of the underlying model. |
There was a problem hiding this comment.
chester moved away from "ChatModel" in favor of "chat model", we need to be consistent
| print(response) | ||
| ``` | ||
|
|
||
| A list of messages can be provided to a model to represent conversation history. Each message has a role that models use to organize messages contextually. See the [messages](./langchain-messages.mdx) guide for more detail on roles, types, and content. |
There was a problem hiding this comment.
organize messages contextually what does this mean in comparison to in the sequence? I feel like it is more ambiguous
Member
Author
There was a problem hiding this comment.
its definitely nit, but I wanted to change "who is speaking in the sequence" since that didn't read right to me
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.