forked from langchain-ai/langchainjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
google-common/webauth/gauth [patch]: Fixes for error, safety, and ima…
…ge handling (langchain-ai#4583) * Better handling when API call makes an error. Tailored to how Google will respond. * Handle finish reason or prompt block reason. * Fixes for image types * Support for GoogleBaseLLM .invoke() and .stream() that can handle messages with image parts. * formatting * Refactor safety handler to be a class * formatting * Fix bug turning a chunk into a string when streaming an LLM response * Refactor DefaultGeminiSafetyHandler. Add MessageGeminiSafetyHandler that will mask exceptions with a custom message. * Adding tests for invoke() * Explicitly type safety handler. Code cleanup. * Change from overriding stream() to overriding _streamIterator() as discussed in langchain-ai#4583 * Formatting * Refactor LLM methods to support callbacks * Fix mock * Test everything * Lint * Resolve circular deps * Fix * Fix --------- Co-authored-by: jacoblee93 <[email protected]>
- Loading branch information
1 parent
f0762cc
commit 5030088
Showing
22 changed files
with
1,905 additions
and
119 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.