浏览代码

fix whitespace removal

Arne Müller 1 年之前
父节点
当前提交
5dc0cff459
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      llm/llama.go

+ 1 - 1
llm/llama.go

@@ -666,7 +666,7 @@ func (llm *llama) Decode(ctx context.Context, tokens []int) (string, error) {
 	}
 
 	// decoded content contains a leading whitespace
-	decoded.Content, _ = strings.CutPrefix(decoded.Content, "")
+	decoded.Content, _ = strings.CutPrefix(decoded.Content, " ")
 
 	return decoded.Content, nil
 }