report log
This commit is contained in:
@@ -65,7 +65,7 @@ public class DeepResearchService {
|
|||||||
.retrieve()
|
.retrieve()
|
||||||
.bodyToMono(DeepResearchResponse.class)
|
.bodyToMono(DeepResearchResponse.class)
|
||||||
// 👇 Log the successful response object here
|
// 👇 Log the successful response object here
|
||||||
.doOnSuccess(response -> log.info("Deep research API response: {}", response))
|
.doOnSuccess(response -> log.info("Deep research API response: {}", response.getReport()))
|
||||||
.timeout(Duration.ofMillis(timeoutMs))
|
.timeout(Duration.ofMillis(timeoutMs))
|
||||||
.onErrorMap(WebClientResponseException.class,
|
.onErrorMap(WebClientResponseException.class,
|
||||||
e -> new RuntimeException("Deep research API error: " + e.getResponseBodyAsString(), e))
|
e -> new RuntimeException("Deep research API error: " + e.getResponseBodyAsString(), e))
|
||||||
|
|||||||
Reference in New Issue
Block a user