mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-19 17:36:00 +00:00
chore(langchain): Fix typos in core docstrings (#32928)
Signed-off-by: zhanluxianshen <zhanluxianshen@163.com>
This commit is contained in:
@@ -97,7 +97,7 @@ def get_buffer_string(
|
||||
messages: Messages to be converted to strings.
|
||||
human_prefix: The prefix to prepend to contents of HumanMessages.
|
||||
Default is "Human".
|
||||
ai_prefix: THe prefix to prepend to contents of AIMessages. Default is "AI".
|
||||
ai_prefix: The prefix to prepend to contents of AIMessages. Default is "AI".
|
||||
|
||||
Returns:
|
||||
A single string concatenation of all input messages.
|
||||
|
@@ -101,7 +101,7 @@ def parse_partial_json(s: str, *, strict: bool = False) -> Any:
|
||||
# If we're still inside a string at the end of processing,
|
||||
# we need to close the string.
|
||||
if is_inside_string:
|
||||
if escaped: # Remoe unterminated escape character
|
||||
if escaped: # Remove unterminated escape character
|
||||
new_chars.pop()
|
||||
new_chars.append('"')
|
||||
|
||||
|
@@ -220,7 +220,7 @@ def _build_model_kwargs(
|
||||
values: dict[str, Any],
|
||||
all_required_field_names: set[str],
|
||||
) -> dict[str, Any]:
|
||||
"""Build "model_kwargs" param from Pydanitc constructor values.
|
||||
"""Build "model_kwargs" param from Pydantic constructor values.
|
||||
|
||||
Args:
|
||||
values: All init args passed in by user.
|
||||
|
Reference in New Issue
Block a user