From 5141a1230cf600ae4fa28425eaf5d3fd21450e5e Mon Sep 17 00:00:00 2001 From: wizardchen Date: Sun, 17 May 2026 21:31:08 +0800 Subject: [PATCH] fix(embedding): repair broken comment in Zhipu embedder A stray `/` line split what should have been `//`, which prevented `go build` from succeeding in CI. --- internal/models/embedding/zhipu.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/models/embedding/zhipu.go b/internal/models/embedding/zhipu.go index 54e83eac..941054c0 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)