fix(infra,core): nits (#34079)

* Add missing `nits` to allowed PR linting scopes
* Ensure `MAJOR.MINOR.PATCH` consistency in admonitions
* Ensure valid spacing in admonitions
This commit is contained in:
Mason Daugherty
2025-11-23 20:00:07 -05:00
committed by GitHub
parent 30e2260e26
commit 2a863727f9
3 changed files with 5 additions and 2 deletions

View File

@@ -102,6 +102,7 @@ jobs:
qdrant
xai
infra
deps
requireScope: false
disallowScopes: |
release

View File

@@ -333,7 +333,7 @@ class BaseChatModel(BaseLanguageModel[AIMessage], ABC):
[`langchain-openai`](https://pypi.org/project/langchain-openai)) can also use this
field to roll out new content formats in a backward-compatible way.
!!! version-added "Added in `langchain-core` 1.0"
!!! version-added "Added in `langchain-core` 1.0.0"
"""
@@ -349,7 +349,7 @@ class BaseChatModel(BaseLanguageModel[AIMessage], ABC):
Example profile data includes context window sizes, supported modalities, or support
for tool calling, structured output, and other features.
!!! version-added "Added in `langchain-core` 1.1"
!!! version-added "Added in `langchain-core` 1.1.0"
"""
model_config = ConfigDict(

View File

@@ -738,8 +738,10 @@ def trim_messages(
Set to `len` to count the number of **messages** in the chat history.
!!! note
Use `count_tokens_approximately` to get fast, approximate token
counts.
This is recommended for using `trim_messages` on the hot path, where
exact token counting is not necessary.