mirror of
https://gitee.com/agents-flex/agents-flex.git
synced 2024-11-29 18:38:17 +08:00
refactor: rename "SleepUtils" to "SleepUtil"
This commit is contained in:
parent
0f625489ec
commit
e843a15999
@ -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 {
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user