refactor: rename "SleepUtils" to "SleepUtil"

This commit is contained in:
Michael Yang 2024-10-26 15:01:40 +08:00
parent 0f625489ec
commit e843a15999
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ package com.agentsflex.core.util;
import java.util.concurrent.Callable;
public class SleepUtils {
public class SleepUtil {
public static void sleep(long millis) {
try {

View File

@ -32,7 +32,7 @@ import com.agentsflex.core.parser.AiMessageParser;
import com.agentsflex.core.parser.FunctionMessageParser;
import com.agentsflex.core.prompt.Prompt;
import com.agentsflex.core.store.VectorData;
import com.agentsflex.core.util.SleepUtils;
import com.agentsflex.core.util.SleepUtil;
import com.agentsflex.core.util.StringUtil;
import com.alibaba.fastjson.JSONPath;
import org.slf4j.Logger;
@ -78,7 +78,7 @@ public class SparkLlm extends BaseLlm<SparkLlmConfig> {
if (code != 0) {
//11202 授权错误秒级流控超限秒级并发超过授权路数限制
if (code.equals(11202) && tryTimes < 3) {
SleepUtils.sleep(200);
SleepUtil.sleep(200);
return embed(document, options, tryTimes + 1);
} else {
logger.error(resp);