fix: change summarizer call condition to check if summarizer is nil instead of environment variables

Co-authored-by: aider (openai/qwen3-coder:30b-a3b-q4_K_M) <aider@aider.chat>
This commit is contained in:
Olivier Tremblay 2025-11-17 11:10:13 -05:00
parent 513af56fff
commit f326dca8a9

View file

@ -93,10 +93,8 @@ func main() {
os.Exit(1) os.Exit(1)
} }
// Only call summarization endpoint if we have appropriate credentials // Only call summarization endpoint if we have a valid summarizer
if openaiEndpoint != "" && openaiToken != "" { if summarizer != nil {
fmt.Println(summ)
} else if os.Getenv("ANTHROPIC_API_KEY") != "" && anthropicModel != "" {
fmt.Println(summ) fmt.Println(summ)
} else { } else {
fmt.Println("No summarization endpoint configured, but prompt file was created for debugging") fmt.Println("No summarization endpoint configured, but prompt file was created for debugging")