Add LLM-based functionality to Slack uploader #116
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Implementation details
Original task
In the slack uploader, let's add some LLM-based functionality: (1) each time a note is submitted, start a thread in the background that uses assistant_commands.chat_completion to clean up any obvious typos in the note (it should clean up typos that don't convey character or information, but typos that convey personality or level of certainty like Hrmmm... should be left alone); once the LLM returns the clean version of the note, it should update the note in slack. (2) When a session ends, start a thread that uses assistant_commands.chat_completion to get an update to the top-level message for that session. The updated top-level message should summarize the session. Then on a final stand-alone line it should provide an estimate of the importance of the session, how long it will take to read, and any keyword #tags characterizing the session
🤖 Generated with Claude Code