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:
parent
2034bee99c
commit
7f2629d09c
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue