feat: add /think for second AI phase

This commit is contained in:
2026-04-19 22:53:29 +02:00
parent 7ef93276e1
commit 71513ea62c
4 changed files with 65 additions and 1 deletions

View File

@ -157,6 +157,7 @@ func (p *Pipeline) filterByRelevance(ctx context.Context, provider Provider, sym
func buildFilterPrompt(symbols []string, articles []models.Article, max int) string {
var sb strings.Builder
sb.WriteString("/no_think\n")
sb.WriteString("Tu es un assistant de trading financier. ")
sb.WriteString(fmt.Sprintf("Parmi les %d articles ci-dessous, sélectionne les %d plus pertinents pour un trader actif.\n", len(articles), max))
@ -275,6 +276,7 @@ func buildPrompt(systemPrompt string, symbols []string, articles []models.Articl
sb.WriteString(".\n\n")
}
sb.WriteString(fmt.Sprintf("Date d'analyse : %s\n\n", time.Now().Format("02/01/2006 15:04")))
sb.WriteString("/think\n\n")
sb.WriteString("## Actualités\n\n")
for i, a := range articles {