|
@@ -41,7 +41,7 @@ public class GeminiGenerateContentAction implements Action {
|
|
private static final String MODEL = "gemini-2.0-flash";
|
|
private static final String MODEL = "gemini-2.0-flash";
|
|
private static final Double TEMPERATURE = 1.0;
|
|
private static final Double TEMPERATURE = 1.0;
|
|
|
|
|
|
- private static final Integer RETRY_TIMES = 5;
|
|
|
|
|
|
+ private static final Integer RETRY_TIMES = 10;
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private RedisUtil redisUtil;
|
|
private RedisUtil redisUtil;
|
|
@@ -114,7 +114,7 @@ public class GeminiGenerateContentAction implements Action {
|
|
}
|
|
}
|
|
throw new RuntimeException("geminiGenerateContentAction request error", e);
|
|
throw new RuntimeException("geminiGenerateContentAction request error", e);
|
|
}
|
|
}
|
|
- }, RETRY_TIMES, "geminiGenerateContentAction", RetryUtil::retryInterval);
|
|
|
|
|
|
+ }, RETRY_TIMES, "geminiGenerateContentAction", RetryUtil::retryIntervalLevel1);
|
|
}
|
|
}
|
|
|
|
|
|
private int getIndex(int size) {
|
|
private int getIndex(int size) {
|