Skip to content

Commit 2f85910

Browse files
committed
unused import
1 parent c58b35a commit 2f85910

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

summarize.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77

88
readability "github.com/go-shiori/go-readability"
99
openai "github.com/sashabaranov/go-openai"
10-
"github.com/spf13/viper"
1110
)
1211

1312
func getSummaryFromLink(url string) string {
@@ -31,12 +30,12 @@ func summarize(text string) string {
3130
if len(text) < 200 {
3231
return ""
3332
}
34-
33+
3534
prompt := summaryPrompt
3635
if prompt == "" {
3736
prompt = "Summarize the following text:"
3837
}
39-
38+
4039
clientConfig := openai.DefaultConfig(openaiApiKey)
4140
if openaiBaseURL != "" {
4241
clientConfig.BaseURL = openaiBaseURL

0 commit comments

Comments
 (0)