refactor: Clean up and organize code structure in initialization and request modules for improved maintainability

This commit is contained in:
begoniezhao
2025-12-01 14:48:33 +08:00
parent eb8bfddfd1
commit 15603dbac7
4 changed files with 21 additions and 21 deletions
+6 -6
View File
@@ -1771,14 +1771,14 @@ func (h *InitializationHandler) testMultimodalWithDocReader(
type TextRelationExtractionRequest struct {
Text string `json:"text" binding:"required"`
Tags []string `json:"tags" binding:"required"`
LLMConfig LLMConfig `json:"llmConfig"`
LLMConfig LLMConfig `json:"llm_config"`
}
type LLMConfig struct {
Source string `json:"source"`
ModelName string `json:"modelName"`
BaseUrl string `json:"baseUrl"`
ApiKey string `json:"apiKey"`
ModelName string `json:"model_name"`
BaseUrl string `json:"base_url"`
ApiKey string `json:"api_key"`
}
// TextRelationExtractionResponse 文本关系提取响应结构
@@ -1871,7 +1871,7 @@ func (h *InitializationHandler) extractRelationsFromText(
type FabriTextRequest struct {
Tags []string `json:"tags"`
LLMConfig LLMConfig `json:"llmConfig"`
LLMConfig LLMConfig `json:"llm_config"`
}
type FabriTextResponse struct {
@@ -1936,7 +1936,7 @@ func (h *InitializationHandler) fabriText(ctx context.Context, tags []string, ll
}
type FabriTagRequest struct {
LLMConfig LLMConfig `json:"llmConfig"`
LLMConfig LLMConfig `json:"llm_config"`
}
type FabriTagResponse struct {