fix
This commit is contained in:
@@ -123,9 +123,10 @@ public class GeminiVideoGenerationService {
|
|||||||
.bodyValue(requestBody)
|
.bodyValue(requestBody)
|
||||||
.retrieve()
|
.retrieve()
|
||||||
.bodyToMono(new ParameterizedTypeReference<Map<String, Object>>() {})
|
.bodyToMono(new ParameterizedTypeReference<Map<String, Object>>() {})
|
||||||
.retryWhen(reactor.util.retry.Retry.backoff(3, Duration.ofSeconds(15))
|
// ВНИМАНИЕ: МЫ ОТКЛЮЧИЛИ РЕТРАИ ДЛЯ ОТЛОВА ЧИСТОЙ ОШИБКИ ОТ GOOGLE
|
||||||
.filter(t -> t instanceof WebClientResponseException &&
|
// .retryWhen(reactor.util.retry.Retry.backoff(3, Duration.ofSeconds(15))
|
||||||
((WebClientResponseException) t).getStatusCode().value() == 429))
|
// .filter(t -> t instanceof WebClientResponseException &&
|
||||||
|
// ((WebClientResponseException) t).getStatusCode().value() == 429))
|
||||||
.block(Duration.ofMillis(600000));
|
.block(Duration.ofMillis(600000));
|
||||||
|
|
||||||
byte[] videoBytes = extractVideoFromResponse(response);
|
byte[] videoBytes = extractVideoFromResponse(response);
|
||||||
|
|||||||
Reference in New Issue
Block a user