Compare commits

...

8 Commits

Author SHA1 Message Date
Bel LaPointe
31fe916000 DO AS I WILL 2024-04-19 15:15:08 -06:00
Bel LaPointe
d31042e971 prompt up again 2024-04-19 15:07:12 -06:00
Bel LaPointe
2e7d58fd13 prompt up 2024-04-19 14:56:21 -06:00
Bel LaPointe
93672e67a6 gr 2024-04-19 14:33:12 -06:00
Bel LaPointe
1b06f727fd OBEY 2024-04-19 14:25:01 -06:00
Bel LaPointe
3ae62390cf more prompt 2024-04-19 14:18:18 -06:00
Bel LaPointe
5cfb89bc64 up queue timeout to 10min for ai reasons 2024-04-19 14:14:07 -06:00
Bel LaPointe
b554be6282 update prompt 2024-04-19 14:10:48 -06:00
3 changed files with 6 additions and 3 deletions

View File

@@ -56,8 +56,8 @@ func newConfigFromEnv(ctx context.Context, getEnv func(string) string) (Config,
AssetPattern: renderAssetPattern, AssetPattern: renderAssetPattern,
DatacenterPattern: renderDatacenterPattern, DatacenterPattern: renderDatacenterPattern,
EventNamePattern: renderEventNamePattern, EventNamePattern: renderEventNamePattern,
RecapPromptIntro: "A Slack thread begin with the following original post.", RecapPromptIntro: "A Slack thread began with the following original post.",
RecapPrompt: "Summarize all of the following Slack thread responses in 1 sentence without any leading text.", 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 var m map[string]any

View File

@@ -90,7 +90,7 @@ func (q Queue) syn(ctx context.Context) ([]byte, []byte, error) {
topic = $3 topic = $3
AND ( AND (
reservation IS NULL reservation IS NULL
OR $4 - updated > 60 OR $4 - updated > 600
) )
LIMIT 1 LIMIT 1
) )

View File

@@ -70,6 +70,9 @@ func newPersistenceToRecapProcess(cfg Config) processFunc {
return err return err
} }
log.Println("recapped", thread.ID) 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 return nil
}(); err != nil { }(); err != nil {