docs: fix typo in globals.py (#31728)

This commit is contained in:
Michael Li 2025-06-26 01:47:02 +10:00 committed by GitHub
parent 3c3320ae30
commit 990a69d9d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,7 +64,7 @@ def get_verbose() -> bool:
# In the meantime, the `verbose` setting is considered True if either the old # In the meantime, the `verbose` setting is considered True if either the old
# or the new value are True. This accommodates users who haven't migrated # or the new value are True. This accommodates users who haven't migrated
# to using `set_verbose()` yet. Those users are getting deprecation warnings # to using `set_verbose()` yet. Those users are getting deprecation warnings
# directing them to use `set_verbose()` when they import `langhchain.verbose`. # directing them to use `set_verbose()` when they import `langchain.verbose`.
old_verbose = langchain.verbose old_verbose = langchain.verbose
global _verbose global _verbose
@ -115,7 +115,7 @@ def get_debug() -> bool:
# In the meantime, the `debug` setting is considered True if either the old # In the meantime, the `debug` setting is considered True if either the old
# or the new value are True. This accommodates users who haven't migrated # or the new value are True. This accommodates users who haven't migrated
# to using `set_debug()` yet. Those users are getting deprecation warnings # to using `set_debug()` yet. Those users are getting deprecation warnings
# directing them to use `set_debug()` when they import `langhchain.debug`. # directing them to use `set_debug()` when they import `langchain.debug`.
old_debug = langchain.debug old_debug = langchain.debug
global _debug global _debug
@ -172,7 +172,7 @@ def get_llm_cache() -> "BaseCache":
# or the old value if both are falsy. This accommodates users # or the old value if both are falsy. This accommodates users
# who haven't migrated to using `set_llm_cache()` yet. # who haven't migrated to using `set_llm_cache()` yet.
# Those users are getting deprecation warnings directing them # Those users are getting deprecation warnings directing them
# to use `set_llm_cache()` when they import `langhchain.llm_cache`. # to use `set_llm_cache()` when they import `langchain.llm_cache`.
old_llm_cache = langchain.llm_cache old_llm_cache = langchain.llm_cache
global _llm_cache global _llm_cache