Compare commits
8 Commits
5785ea37ae
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
31fe916000 | ||
|
|
d31042e971 | ||
|
|
2e7d58fd13 | ||
|
|
93672e67a6 | ||
|
|
1b06f727fd | ||
|
|
3ae62390cf | ||
|
|
5cfb89bc64 | ||
|
|
b554be6282 |
@@ -56,8 +56,8 @@ func newConfigFromEnv(ctx context.Context, getEnv func(string) string) (Config,
|
||||
AssetPattern: renderAssetPattern,
|
||||
DatacenterPattern: renderDatacenterPattern,
|
||||
EventNamePattern: renderEventNamePattern,
|
||||
RecapPromptIntro: "A Slack thread begin with the following original post.",
|
||||
RecapPrompt: "Summarize all of the following Slack thread responses in 1 sentence without any leading text.",
|
||||
RecapPromptIntro: "A Slack thread began with the following original post.",
|
||||
RecapPrompt: "What is the summary of the responses to the Slack thread consisting of the following messages? Limit the summary to one sentence. Do not include any leading text. Be as brief as possible. No context is needed.",
|
||||
}
|
||||
|
||||
var m map[string]any
|
||||
|
||||
2
queue.go
2
queue.go
@@ -90,7 +90,7 @@ func (q Queue) syn(ctx context.Context) ([]byte, []byte, error) {
|
||||
topic = $3
|
||||
AND (
|
||||
reservation IS NULL
|
||||
OR $4 - updated > 60
|
||||
OR $4 - updated > 600
|
||||
)
|
||||
LIMIT 1
|
||||
)
|
||||
|
||||
3
recap.go
3
recap.go
@@ -70,6 +70,9 @@ func newPersistenceToRecapProcess(cfg Config) processFunc {
|
||||
return err
|
||||
}
|
||||
log.Println("recapped", thread.ID)
|
||||
if cfg.Debug {
|
||||
log.Printf("Recapped %q as %q from %q/%q and %+v", thread.ID, thread.Recap, cfg.RecapPromptIntro, cfg.RecapPrompt, messages)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user