feat: add video URL support in MediaContent and update token counting logic
This commit is contained in:
1 parent
f5c2fda22a
commit
4bf0d094c4
3 files changed
+19
-2
No files matched your search
@@ -80,6 +80,8 @@ func main() {
|
||||
// Initialize options
|
||||
model.InitOptionMap()
|
||||
|
||||
service.InitTokenEncoders()
|
||||
|
||||
if common.RedisEnabled {
|
||||
// for compatibility with old versions
|
||||
common.MemoryCacheEnabled = true
|
||||
@@ -133,8 +135,6 @@ func main() {
|
||||
common.SysLog("pprof enabled")
|
||||
}
|
||||
|
||||
service.InitTokenEncoders()
|
||||
|
||||
// Initialize HTTP server
|
||||
server := gin.New()
|
||||
server.Use(gin.CustomRecovery(func(c *gin.Context, err any) {
|
||||
|
||||
Reference in new issue
Block a user