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:
parent
513af56fff
commit
f326dca8a9
1 changed files with 2 additions and 4 deletions
|
|
@ -93,10 +93,8 @@ func main() {
|
|||
os.Exit(1)
|
||||
}
|
||||
|
||||
// Only call summarization endpoint if we have appropriate credentials
|
||||
if openaiEndpoint != "" && openaiToken != "" {
|
||||
fmt.Println(summ)
|
||||
} else if os.Getenv("ANTHROPIC_API_KEY") != "" && anthropicModel != "" {
|
||||
// Only call summarization endpoint if we have a valid summarizer
|
||||
if summarizer != nil {
|
||||
fmt.Println(summ)
|
||||
} else {
|
||||
fmt.Println("No summarization endpoint configured, but prompt file was created for debugging")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue