langchain/docs/snippets/modules/model_io
Predrag Gruevski 9e32120cbb
Deprecate direct access to globals like debug and verbose. (#11311)
Instead of accessing `langchain.debug`, `langchain.verbose`, or
`langchain.llm_cache`, please use the new getter/setter functions in
`langchain.globals`:
- `langchain.globals.set_debug()` and `langchain.globals.get_debug()`
- `langchain.globals.set_verbose()` and
`langchain.globals.get_verbose()`
- `langchain.globals.set_llm_cache()` and
`langchain.globals.get_llm_cache()`

Using the old globals directly will now raise a warning.

---------

Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
2023-10-12 15:48:04 -07:00
..
models Deprecate direct access to globals like debug and verbose. (#11311) 2023-10-12 15:48:04 -07:00
output_parsers docs: remove multiple code blocks from comma-separated docs (#9323) 2023-08-16 11:51:58 -07:00
prompts Docs: improve similarity search examples (#11298) 2023-10-03 21:47:08 -04:00