Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
avonar committed Dec 8, 2024
1 parent dfae3cc commit 7a0d3c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions _examples/simplechat/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkp
github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto=
github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU=
github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM=
github.com/fsnotify/fsnotify v1.8.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0=
github.com/go-chi/chi/v5 v5.1.0/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8=
github.com/go-pkgz/expirable-cache/v3 v3.0.0/go.mod h1:2OQiDyEGQalYecLWmXprm3maPXeVb5/6/X7yRPYTzec=
github.com/go-pkgz/lgr v0.11.1/go.mod h1:tgDF4RXQnBfIgJqjgkv0yOeTQ3F1yewWIZkpUhHnAkU=
Expand Down Expand Up @@ -41,6 +42,7 @@ github.com/sashabaranov/go-openai v1.32.5 h1:/eNVa8KzlE7mJdKPZDj6886MUzZQjoVHyn0
github.com/sashabaranov/go-openai v1.32.5/go.mod h1:lj5b/K+zjTSFxVLijLSTDZuP7adOgerWeFyZLUhAKRg=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/umputun/go-flags v1.5.1/go.mod h1:nTbvsO/hKqe7Utri/NoyN18GR3+EWf+9RrmsdwdhrEc=
github.com/umputun/tg-spam v1.14.3 h1:8PoFBtNnJl7Po2AZvD+/DSA9ghTz/o4BZyyGbF90jHk=
github.com/umputun/tg-spam v1.14.3/go.mod h1:04R5Us85smlcvKzb04LlOyAke4x9gnbkTIfdSkV7D2s=
golang.org/x/exp v0.0.0-20241009180824-f66d83c29e7c h1:7dEasQXItcW1xKJ2+gg5VOiBnqWrJc+rq0DPKyvvdbY=
Expand Down
5 changes: 3 additions & 2 deletions _examples/simplechat/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func main() {
slog.Error("Error loading stop words:", slog.Any("error", err))
return
}
slog.Info("Loaded %d stop words", res.StopWords)
slog.Info("Loaded ", slog.Any("stop words", res.StopWords))

// load spam and ham samples from files
spamSamples, err := os.Open("data/spam-samples.txt")
Expand All @@ -73,7 +73,8 @@ func main() {
slog.Error("Error loading samples:", slog.Any("error", err))
return
}
slog.Info("Loaded %d spam samples and %d ham samples", res.SpamSamples, res.HamSamples)

slog.Info("Loaded ", slog.Any("spam samples", res.SpamSamples), slog.Any("ham samples", res.HamSamples))

// prepare and start web server
srv := &web.Server{
Expand Down

0 comments on commit 7a0d3c0

Please sign in to comment.