Skip to content

Commit

Permalink
Log tweet summary generation in editor
Browse files Browse the repository at this point in the history
The update introduces logging for long story summary generation requests in the tweet editor. This will be helpful for debugging and tracking changes related to tweet summarization.
  • Loading branch information
lueurxax committed Dec 26, 2023
1 parent fae3dde commit e1938a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/tweetseditor/editor.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ func (e *editor) longStorySend(ctx context.Context) error {
tweetsStr = strings.Join([]string{tweetsStr, twee.Text}, "\n")
}

e.log.WithField("tweets", tweetsStr).Debug("long story summary generation request")

request := ""
if len(e.longStoryMessages) == 0 {
request = fmt.Sprintf(longStoryPrompt, tweetsStr)
Expand Down

0 comments on commit e1938a3

Please sign in to comment.