feat: add /think for second AI phase
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user