-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core[patch]: Add LLM/ChatModel callbacks to cached generation (#3392)
* Add _generateCached callback to chat_models * Add _generateCached to llms * Fix formatting * Remove unused ignore * Pass llmStringKey as parameter * Wrap generateCached arguments into object * Add coment for defineProperty block * Fix run managers getting filtered out * Fix formatting * Naming nit * Use more type imports * Add language model callback tests --------- Co-authored-by: Brace Sproul <braceasproul@gmail.com> Co-authored-by: jacoblee93 <jacoblee93@gmail.com>
- Loading branch information
1 parent
19e4627
commit a22ce78
Showing
6 changed files
with
356 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
a22ce78
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
langchainjs-api-refs β ./docs/api_refs
langchainjs-api-refs-langchain.vercel.app
api.js.langchain.com
langchainjs-api-refs-git-main-langchain.vercel.app
langchainjs-api-docs.vercel.app
a22ce78
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
langchainjs-docs β ./docs/core_docs/
langchainjs-docs-ruddy.vercel.app
langchainjs-docs-git-main-langchain.vercel.app
langchainjs-docs-langchain.vercel.app
js.langchain.com