拆分内容方法调整
This commit is contained in:
@@ -332,7 +332,7 @@ class HelperFunction
|
|||||||
|
|
||||||
// return $chunks;
|
// return $chunks;
|
||||||
// }
|
// }
|
||||||
public function splitContent($content,$maxChunkTokens = 12000,$charPerToken = 3,$overlap = 100){
|
public function splitContent($content,$maxChunkTokens = 12000,$charPerToken = 4,$overlap = 100){
|
||||||
// 1. 前置参数校验(极简逻辑,减少分支损耗)
|
// 1. 前置参数校验(极简逻辑,减少分支损耗)
|
||||||
$contentLength = strlen($content);
|
$contentLength = strlen($content);
|
||||||
if ($contentLength === 0) {
|
if ($contentLength === 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user