Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: refactor callback handler to handle query and response
- Add functionality to handle text messages in the callback handler - Extract user ID from the event source - Query the Notion database for results containing the user ID and the message text - Return an error message if no results are found - Marshal the results to JSON - Send the JSON string to the GeminiChatComplete function - Return the result of GeminiChatComplete to the user Signed-off-by: Evan Lin <[email protected]>
- Loading branch information