diff --git a/docs/docs/apis-ask/ask-async.md b/docs/docs/apis-ask/ask-async.md index 0a56153..7d8cc54 100644 --- a/docs/docs/apis-ask/ask-async.md +++ b/docs/docs/apis-ask/ask-async.md @@ -24,8 +24,8 @@ public class Main { while (!callback.isComplete() || !callback.getStream().isEmpty()) { // poll for data from the response stream String result = callback.getStream().poll(); - if (response != null) { - System.out.print(result.getResponse()); + if (result != null) { + System.out.print(result); } Thread.sleep(100); }