From 85a3be8776e9f0aa820f47c9f39b60982c5f0f94 Mon Sep 17 00:00:00 2001 From: sunist-c Date: Thu, 26 Sep 2024 15:28:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(deps):=20=E4=BF=AE=E5=A4=8D=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E5=AD=97=E6=AE=B5=E5=B9=B6=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/model/openai_request.go | 4 ++-- go.mod | 2 +- go.sum | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/model/openai_request.go b/app/model/openai_request.go index 76dadef..9a9b134 100644 --- a/app/model/openai_request.go +++ b/app/model/openai_request.go @@ -12,8 +12,8 @@ import ( type OpenaiRequest struct { ID int64 `gorm:"column:id;type:integer;autoIncrement:true;primaryKey;index:idx_ids"` ClientID int64 `gorm:"column:client_id;type:integer;not null;comment:openai_client_id;index:idx_client_ids"` - RequestID string `gorm:"column:request_id;type:varchar(40);not null;comment:openai_request_id;index:idx_request_ids"` - TraceID string `gorm:"column:trace_id;type:varchar(40);not null;comment:openai_trace_id;index:idx_trace_ids"` + RequestID string `gorm:"column:request_id;type:varchar(64);not null;comment:openai_request_id;index:idx_request_ids"` + TraceID string `gorm:"column:trace_id;type:varchar(64);not null;comment:openai_trace_id;index:idx_trace_ids"` ModelID int64 `gorm:"column:model_id;type:integer;not null;comment:openai_model_id;index:idx_model_ids"` UserID int64 `gorm:"column:user_id;type:integer;not null;comment:openai_user_id;index:idx_user_ids"` RequestIP string `gorm:"column:request_ip;type:varchar(40);not null;comment:openai_request_ip;index:idx_request_ips"` diff --git a/go.mod b/go.mod index e9899d3..c52e4df 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/alioth-center/akasha-whisper go 1.22.4 require ( - github.com/alioth-center/infrastructure v1.2.19-0.20240913025603-1d50932f7b1f + github.com/alioth-center/infrastructure v1.2.19-0.20240926071335-024250e552c5 github.com/bits-and-blooms/bloom/v3 v3.7.0 github.com/gin-contrib/sse v0.1.0 github.com/gin-gonic/gin v1.10.0 diff --git a/go.sum b/go.sum index f267f4c..a8311f9 100644 --- a/go.sum +++ b/go.sum @@ -2,6 +2,8 @@ filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA= filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4= github.com/alioth-center/infrastructure v1.2.19-0.20240913025603-1d50932f7b1f h1:Icm1/ykakPK+mD6aa4duRFFSVcwkNdbAjSVmdvQukWE= github.com/alioth-center/infrastructure v1.2.19-0.20240913025603-1d50932f7b1f/go.mod h1:NN+S3dKyPw7A4phkij8jzKG8aHpOqDsPG+/KRvHbAnM= +github.com/alioth-center/infrastructure v1.2.19-0.20240926071335-024250e552c5 h1:8zdKiqA3Hw2ov3pcOSZ/yks7NFn29FyX65Yr97BJ8eI= +github.com/alioth-center/infrastructure v1.2.19-0.20240926071335-024250e552c5/go.mod h1:QMr9jurGWQ30p0wG2IcatILimuSypnF0YtmyzD2PFmE= github.com/bits-and-blooms/bitset v1.10.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8= github.com/bits-and-blooms/bitset v1.14.2 h1:YXVoyPndbdvcEVcseEovVfp0qjJp7S+i5+xgp/Nfbdc= github.com/bits-and-blooms/bitset v1.14.2/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8=