Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Go: fix siliconflow embedding response (#14975)

buua436b40b0bf99694
diff --git a/internal/entity/models/siliconflow.go b/internal/entity/models/siliconflow.go
index 11ba909365..7e9d4f7c57 100644
--- a/internal/entity/models/siliconflow.go
+++ b/internal/entity/models/siliconflow.go
@@ -372,7 +372,7 @@ func (z *SiliconflowModel) ChatStreamlyWithSender(modelName string, messages []M
}
type siliconflowEmbeddingResponse struct {
- Object []string `json:"object"`
+ Object string `json:"object"`
Model string `json:"model"`
Data []siliconflowEmbeddingData `json:"data"`
Usage siliconflowUsage `json:"usage"`