fix(embedding): repair broken comment in Zhipu embedder

A stray `/` line split what should have been `//`, which prevented `go build` from succeeding in CI.
This commit is contained in:
wizardchen
2026-05-17 21:31:08 +08:00
committed by lyingbug
parent 4fef6826cf
commit 5141a1230c
+2 -3
View File
@@ -157,12 +157,11 @@ func (e *ZhipuEmbedder) BatchEmbed(ctx context.Context, texts []string) ([][]flo
return nil, fmt.Errorf("marshal request: %w", err) return nil, fmt.Errorf("marshal request: %w", err)
} }
// Log request details for debugging // Log request details for debugging
logger.GetLogger(ctx).Debugf("ZhipuEmbedder BatchEmbed: model=%s, input_count=%d, truncate_tokens=%d", logger.GetLogger(ctx).Debugf("ZhipuEmbedder BatchEmbed: model=%s, input_count=%d, truncate_tokens=%d",
e.modelName, len(texts), e.truncatePromptTokens) e.modelName, len(texts), e.truncatePromptTokens)
/
/ Check for invalid input lengths and log details // Check for invalid input lengths and log details
hasInvalidLength := false hasInvalidLength := false
for i, text := range texts { for i, text := range texts {
textLen := len(text) textLen := len(text)