Files
langchain/langchain
Jeremiah Lowin 925dd3e59e Add async versions of predict() and predict_messages() (#4867)
# Add async versions of predict() and predict_messages()

#4615 introduced a unifying interface for "base" and "chat" LLM models
via the new `predict()` and `predict_messages()` methods that allow both
types of models to operate on string and message-based inputs,
respectively.

This PR adds async versions of the same (`apredict()` and
`apredict_messages()`) that are identical except for their use of
`agenerate()` in place of `generate()`, which means they repurpose all
existing work on the async backend.


## Who can review?

Community members can review the PR once tests pass. Tag
maintainers/contributors who might be interested:
        @hwchase17 (follows his work on #4615)
        @agola11 (async)

---------

Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
2023-05-23 17:22:49 -07:00
..
2023-05-23 16:46:50 -07:00
2023-05-20 08:21:52 -07:00
2023-05-23 15:57:33 -07:00
2023-05-17 01:28:43 +00:00
2023-05-15 15:38:49 +00:00
2023-05-17 22:50:35 +00:00
2022-11-12 11:22:32 -08:00
2023-02-20 21:15:45 -08:00
2023-05-16 13:26:43 +00:00
2023-05-14 10:29:17 -07:00