get recap prompt from $RECAP_PROMPT
parent
81793876f8
commit
f27d416a5a
|
|
@ -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
|
||||
|
|
|
|||
2
recap.go
2
recap.go
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in New Issue