From 41fcdf1a8389fd80e269e1b4cb106c074b50f3ba Mon Sep 17 00:00:00 2001 From: wizardchen Date: Wed, 25 Mar 2026 22:02:18 +0800 Subject: [PATCH] chore(go.mod): update dependencies to include tiktoken-go and golang.org/x/sys - Added github.com/tiktoken-go/tokenizer v0.7.0 to the required dependencies for improved tokenization support. - Included golang.org/x/sys v0.40.0 to enhance system call functionalities. - Removed indirect references to these packages to streamline the dependency management. --- go.mod | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 69425a67..d01da5b8 100644 --- a/go.mod +++ b/go.mod @@ -47,6 +47,7 @@ require ( github.com/swaggo/gin-swagger v1.6.1 github.com/swaggo/swag v1.16.6 github.com/tencentyun/cos-go-sdk-v5 v0.7.65 + github.com/tiktoken-go/tokenizer v0.7.0 github.com/volcengine/ve-tos-golang-sdk/v2 v2.7.23 github.com/weaviate/weaviate v1.33.0-rc.1 github.com/weaviate/weaviate-go-client/v5 v5.5.0 @@ -60,6 +61,7 @@ require ( go.uber.org/dig v1.18.1 golang.org/x/crypto v0.46.0 golang.org/x/sync v0.19.0 + golang.org/x/sys v0.40.0 google.golang.org/api v0.259.0 google.golang.org/grpc v1.78.0 google.golang.org/protobuf v1.36.11 @@ -241,7 +243,6 @@ require ( github.com/tidwall/gjson v1.17.1 // indirect github.com/tidwall/match v1.1.1 // indirect github.com/tidwall/pretty v1.2.0 // indirect - github.com/tiktoken-go/tokenizer v0.7.0 // indirect github.com/tklauser/go-sysconf v0.3.16 // indirect github.com/tklauser/numcpus v0.11.0 // indirect github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802 // indirect @@ -280,7 +281,6 @@ require ( golang.org/x/mod v0.31.0 // indirect golang.org/x/net v0.48.0 // indirect golang.org/x/oauth2 v0.34.0 // indirect - golang.org/x/sys v0.40.0 // indirect golang.org/x/telemetry v0.0.0-20251208220230-2638a1023523 // indirect golang.org/x/text v0.32.0 // indirect golang.org/x/time v0.14.0 // indirect