Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

fix(embedding): repair broken comment in Zhipu embedder

wizardchen5141a1230cf6
diff --git a/internal/models/embedding/zhipu.go b/internal/models/embedding/zhipu.go
index 54e83eacc..941054c00 100644
--- a/internal/models/embedding/zhipu.go
+++ b/internal/models/embedding/zhipu.go
@@ -157,12 +157,11 @@ func (e *ZhipuEmbedder) BatchEmbed(ctx context.Context, texts []string) ([][]flo
return nil, fmt.Errorf("marshal request: %w", err)
}
-
// Log request details for debugging
logger.GetLogger(ctx).Debugf("ZhipuEmbedder BatchEmbed: model=%s, input_count=%d, truncate_tokens=%d",
e.modelName, len(texts), e.truncatePromptTokens)
- /
- / Check for invalid input lengths and log details
+
+ // Check for invalid input lengths and log details
hasInvalidLength := false
for i, text := range texts {
textLen := len(text)