refactor: Clean up and organize code structure in initialization and request modules for improved maintainability
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user