This is an automated email from the ASF dual-hosted git repository. LinkinStars pushed a commit to branch dev in repository https://gitbox.apache.org/repos/asf/answer.git
commit 8dd55af6cd6bcec61066a4678a0ead020b752dfe Author: hgaol <[email protected]> AuthorDate: Sun Apr 12 13:31:52 2026 +0800 fix lint --- cmd/wire_gen.go | 2 +- docs/docs.go | 2 +- docs/swagger.json | 2 +- plugin/vector_search.go | 12 ++++++------ 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/cmd/wire_gen.go b/cmd/wire_gen.go index 2c593169..df3b0a1b 100644 --- a/cmd/wire_gen.go +++ b/cmd/wire_gen.go @@ -248,7 +248,6 @@ func initApplication(debug bool, serverConf *conf.Server, dbConf *data.Database, reasonService := reason2.NewReasonService(reasonRepo) reasonController := controller.NewReasonController(reasonService) themeController := controller_admin.NewThemeController() - embeddingService := embedding.NewEmbeddingService() siteInfoService := siteinfo.NewSiteInfoService(siteInfoRepo, siteInfoCommonService, emailService, tagCommonService, configService, questionCommon, fileRecordService) siteInfoController := controller_admin.NewSiteInfoController(siteInfoService) controllerSiteInfoController := controller.NewSiteInfoController(siteInfoCommonService) @@ -285,6 +284,7 @@ func initApplication(debug bool, serverConf *conf.Server, dbConf *data.Database, apiKeyService := apikey.NewAPIKeyService(apiKeyRepo) adminAPIKeyController := controller_admin.NewAdminAPIKeyController(apiKeyService) featureToggleService := feature_toggle.NewFeatureToggleService(siteInfoRepo) + embeddingService := embedding.NewEmbeddingService() mcpController := controller.NewMCPController(searchService, siteInfoCommonService, tagCommonService, questionCommon, commentRepo, userCommon, answerRepo, featureToggleService, embeddingService) aiConversationRepo := ai_conversation.NewAIConversationRepo(dataData) aiConversationService := ai_conversation2.NewAIConversationService(aiConversationRepo, userCommon) diff --git a/docs/docs.go b/docs/docs.go index b50a3cf7..57a23d43 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -11719,7 +11719,7 @@ const docTemplate = `{ "provider": { "type": "string", "maxLength": 50 - }, + } } }, "schema.SiteAIReq": { diff --git a/docs/swagger.json b/docs/swagger.json index 44186220..dac2b38f 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -11692,7 +11692,7 @@ "provider": { "type": "string", "maxLength": 50 - }, + } } }, "schema.SiteAIReq": { diff --git a/plugin/vector_search.go b/plugin/vector_search.go index a0170152..134247d6 100644 --- a/plugin/vector_search.go +++ b/plugin/vector_search.go @@ -65,16 +65,16 @@ type VectorSearchDesc struct { // VectorSearchMetadata holds IDs for URI composition and content retrieval at query time. // Shared between plugins and the core MCP controller. type VectorSearchMetadata struct { - QuestionID string `json:"question_id"` - AnswerID string `json:"answer_id,omitempty"` - Answers []VectorSearchMetadataAnswer `json:"answers,omitempty"` - Comments []VectorSearchMetadataComment `json:"comments,omitempty"` + QuestionID string `json:"question_id"` + AnswerID string `json:"answer_id,omitempty"` + Answers []VectorSearchMetadataAnswer `json:"answers,omitempty"` + Comments []VectorSearchMetadataComment `json:"comments,omitempty"` } // VectorSearchMetadataAnswer stores answer ID and its comment IDs in metadata. type VectorSearchMetadataAnswer struct { - AnswerID string `json:"answer_id"` - Comments []VectorSearchMetadataComment `json:"comments,omitempty"` + AnswerID string `json:"answer_id"` + Comments []VectorSearchMetadataComment `json:"comments,omitempty"` } // VectorSearchMetadataComment stores a comment ID in metadata.
