fix(model): ModelMgr do not init
This commit is contained in:
@@ -27,6 +27,7 @@ import (
|
||||
search "github.com/coze-dev/coze-studio/backend/domain/search/service"
|
||||
user "github.com/coze-dev/coze-studio/backend/domain/user/service"
|
||||
"github.com/coze-dev/coze-studio/backend/infra/contract/idgen"
|
||||
"github.com/coze-dev/coze-studio/backend/infra/contract/modelmgr"
|
||||
"github.com/coze-dev/coze-studio/backend/infra/contract/storage"
|
||||
)
|
||||
|
||||
@@ -37,6 +38,7 @@ type ServiceComponents struct {
|
||||
CacheCli *redisV9.Client
|
||||
ProjectEventBus search.ProjectEventBus
|
||||
|
||||
ModelMgr modelmgr.Manager
|
||||
UserSVC user.User
|
||||
ConnectorSVC connector.Connector
|
||||
VariablesSVC variables.Variables
|
||||
@@ -62,6 +64,7 @@ func InitService(components *ServiceComponents) (*APPApplicationService, error)
|
||||
|
||||
APPApplicationSVC.oss = components.OSS
|
||||
APPApplicationSVC.projectEventBus = components.ProjectEventBus
|
||||
APPApplicationSVC.modelMgr = components.ModelMgr
|
||||
|
||||
APPApplicationSVC.userSVC = components.UserSVC
|
||||
APPApplicationSVC.connectorSVC = components.ConnectorSVC
|
||||
|
||||
Reference in New Issue
Block a user