feat: add Ollama summarizer support to main command
This commit is contained in:
parent
bffdff73a4
commit
2034bee99c
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ func main() {
|
||||||
openaiModel := os.Getenv("OPENAI_MODEL")
|
openaiModel := os.Getenv("OPENAI_MODEL")
|
||||||
|
|
||||||
// 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)
|
summ, err := SummarizeData(*employeename, prs, issues, vikunjaTasks, finalPrompt, openaiEndpoint, openaiToken, openaiModel, &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