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
Leonid Ganeline 3ef8b24277
core[patch]: `utils.guard_import` fix (#21133)
Issues (nit): 
1. `utils.guard_import` prints wrong error message when there is an
import `error.` It prints the whole `module_name` but should be only the
first part as the pip package name. E.i. `langchain_core.utils` -> print
not `langchain-core` but `langchain_core.utils`. Also replace '_' with
'-' in the pip package name.
2. it does not handle the `ModuleNotFoundError` which raised if
`guard_import("wrong_module")`

Fixed issues; added ut-s. Controversial: I've reraised
`ModuleNotFoundError` as `ImportError`, since in case of the error, the
proposed action is the same - we need to install a missed package.
5 months ago
..
cli cli[minor]: improve confirmation message with more details (#21027) 5 months ago
community (all): update removal in deprecation warnings from 0.2 to 0.3 (#21265) 5 months ago
core core[patch]: `utils.guard_import` fix (#21133) 5 months ago
experimental (all): update removal in deprecation warnings from 0.2 to 0.3 (#21265) 5 months ago
langchain langchain[patch]: Remove jsonpatch from poetry file (#21272) 5 months ago
partners mistralai: relax tokenizers dep (#21277) 5 months ago
standard-tests (standard tests): add test for basic conversation sequence (#21213) 5 months ago
text-splitters text-splitters[patch]: fix MarkdownHeaderTextSplitter fails to parse headers with non-printable characters (#20645) 5 months ago