You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/core/langchain_core/utils
Erick Friis e1924b3e93
core[patch]: deprecate hwchase17/langchain-hub, address path traversal (#18600)
Deprecates the old langchain-hub repository. Does *not* deprecate the
new https://smith.langchain.com/hub

@PinkDraconian has correctly raised that in the event someone is loading
unsanitized user input into the `try_load_from_hub` function, they have
the ability to load files from other locations in github than the
hwchase17/langchain-hub repository.

This PR adds some more path checking to that function and deprecates the
functionality in favor of the hub built into LangSmith.
7 months ago
..
__init__.py
_merge.py core: improve None value processing in merge_dicts() (#17462) 7 months ago
aiter.py
env.py
formatting.py core[patch]: docstring update (#16813) 7 months ago
function_calling.py
html.py
image.py
input.py infra: add print rule to ruff (#16221) 7 months ago
interactive_env.py
iter.py
json_schema.py
loading.py core[patch]: deprecate hwchase17/langchain-hub, address path traversal (#18600) 7 months ago
pydantic.py
strings.py
utils.py