get recap prompt from $RECAP_PROMPT

main
Bel LaPointe 2024-04-19 13:32:12 -06:00
parent 81793876f8
commit f27d416a5a
2 changed files with 3 additions and 1 deletions

View File

@ -25,6 +25,7 @@ type Config struct {
FillWithTestdata bool
OllamaUrl string
OllamaModel string
RecapPrompt string
AssetPattern string
DatacenterPattern string
EventNamePattern string
@ -54,6 +55,7 @@ func newConfigFromEnv(ctx context.Context, getEnv func(string) string) (Config,
AssetPattern: renderAssetPattern,
DatacenterPattern: renderDatacenterPattern,
EventNamePattern: renderEventNamePattern,
RecapPrompt: "Summarize the Slack thread in 1 sentence. List any suggested follow ups.",
}
var m map[string]any

View File

@ -49,7 +49,7 @@ func newPersistenceToRecapProcess(cfg Config) processFunc {
continue
}
prompt := []string{"Summarize the Slack thread in 1 sentence. List any suggested follow ups."}
prompt := []string{cfg.RecapPrompt}
prompt = append(prompt, "---")
for _, message := range messages {
prompt = append(prompt, fmt.Sprintf("%s\n%s", message.Author, message.Plaintext))