Skip to content

Commit 1b27bd3

Browse files
committed
Require go 1.23 as it is now needed by dependent libraries
1 parent 2e34127 commit 1b27bd3

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/knights-analytics/hugot
22

3-
go 1.22
3+
go 1.23.1
44

55
require (
66
github.com/daulet/tokenizers v0.9.0

hugot.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"context"
55
"errors"
66
"fmt"
7+
"slices"
78

89
util "github.com/knights-analytics/hugot/utils"
910

@@ -323,10 +324,10 @@ func (s *Session) Destroy() error {
323324
// the average time per onnxruntime inference batch call
324325
func (s *Session) GetStats() []string {
325326
// slices.Concat() is not implemented in experimental x/exp/slices package
326-
return append(append(append(
327+
return slices.Concat(
327328
s.tokenClassificationPipelines.GetStats(),
328-
s.textClassificationPipelines.GetStats()...),
329-
s.featureExtractionPipelines.GetStats()...),
330-
s.zeroShotClassificationPipelines.GetStats()...,
329+
s.textClassificationPipelines.GetStats(),
330+
s.featureExtractionPipelines.GetStats(),
331+
s.zeroShotClassificationPipelines.GetStats(),
331332
)
332333
}

0 commit comments

Comments
 (0)