-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly handle completions in middle of document - Include LLM reque… (
#271) …st/response in the trace * Fix #111 * If we are generating a completion for a cell that is in the middle of the document then we need to truncate the cells after the currently corrected cell. This is needed because our prompt just asks the AI to continue writing the document. So if we have a bunch of cells after the currently selected cell we will have problems. * Truncating the cells after the selected cell is the easiest way to avoid this confusion. * Fix #267 include the LLM request and response in the actual trace * This is a much more efficient way to get the raw request and response * GetLLMLogs does a linear search over the logs which is not efficient. * Here's my notebook with my test that its working https://gist.github.com/jlewi/164389227f5f797752ca1a290a05ad1e
- Loading branch information
Showing
24 changed files
with
964 additions
and
305 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
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
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.