-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle extra text in JSON responses and improve error handling
Enhanced the handling of JSON responses to account for extraneous text often returned by weaker LLMs. Consolidated error checking and improved error messages for deserialization failures, ensuring any issues are clearly communicated. Added more detailed checks for the presence of JSON brackets in the response.
- Loading branch information
Showing
1 changed file
with
26 additions
and
13 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