langchain/libs
Nuno Campos fdfb51ad8d
core: Two updates to chat model interface (#19684)
- .stream() and .astream() call on_llm_new_token, removing the need for
subclasses to do so. Backwards compatible because now we don't pass
run_manager into ._stream and ._astream
- .generate() and .agenerate() now handle `stream: bool` kwarg for
_generate and _agenerate. Subclasses handle this arg by delegating to
._stream(), now one less thing they need to do. Backwards compat because
this is an optional arg that we now never pass to the subclasses
- .generate() and .agenerate() now inspect callback handlers to decide
on a default value for stream:bool if not passed in. This auto enables
streaming when using astream_events and astream_log
- as a result of these three changes any usage of .astream_events and
.astream_log should now yield chat model stream events
- In future PRs we can update all subclasses to reflect these two things
now handled by base class, but in meantime all will continue to work
2024-03-27 18:45:01 -07:00
..
cli cli[patch]: Fix typo in dev script name for the --chat-playground option on the cli (#19673) 2024-03-27 15:56:11 -04:00
community community[minor]: integrate China Mobile Ecloud vector search (#15298) 2024-03-27 23:02:40 +00:00
core core: Two updates to chat model interface (#19684) 2024-03-27 18:45:01 -07:00
experimental experimental[patch]: Enhance LLMGraphTransformer with async processing and improved readability (#19205) 2024-03-26 23:40:21 -07:00
langchain [Evals] Fix function calling support (#19658) 2024-03-27 17:23:35 -07:00
partners cohere[patch]: Add cohere tools agent (#19602) 2024-03-27 18:35:43 -07:00
text-splitters infra: Consistent lxml requirements (#19520) 2024-03-27 20:27:59 +00:00