fix: remove extraneous parameters from SummarizeData call and use properly initialized OllamaSummarizer

Co-authored-by: aider (openai/qwen3-coder:30b-a3b-q4_K_M) <aider@aider.chat>
This commit is contained in:
Olivier Tremblay 2025-11-16 17:21:12 -05:00
parent 2034bee99c
commit 7f2629d09c

View file

@ -72,8 +72,11 @@ func main() {
openaiToken := os.Getenv("OPENAI_TOKEN") openaiToken := os.Getenv("OPENAI_TOKEN")
openaiModel := os.Getenv("OPENAI_MODEL") openaiModel := os.Getenv("OPENAI_MODEL")
// Create Ollama summarizer
ollamaSummarizer := NewOllamaSummarizer("", "", openaiModel)
// Always call SummarizeData to ensure prompt file is created for debugging // Always call SummarizeData to ensure prompt file is created for debugging
summ, err := SummarizeData(*employeename, prs, issues, vikunjaTasks, finalPrompt, openaiEndpoint, openaiToken, openaiModel, &OllamaSummarizer{}) summ, err := SummarizeData(*employeename, prs, issues, vikunjaTasks, finalPrompt, ollamaSummarizer)
if err != nil { if err != nil {
fmt.Println(fmt.Errorf("error getting PRs: %w", err)) fmt.Println(fmt.Errorf("error getting PRs: %w", err))
os.Exit(1) os.Exit(1)