You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling the converseStream() method from the AWS PHP SDK, the result is supposed to be returned as soon as possible, then we can iterate stream value in the result until the streaming finished.
However, debug logs show that when calling converseStream() method, we need to wait for the whole streaming finished, then it returns results, which seems weird to me.
Regression Issue
Select this option if this issue appears to be a regression.
Expected Behavior
converseStream() should return the result as soon as possible.
Current Behavior
converseStream() does NOT return the result as soon as possible rather it waits until the streaming finished, then it returns the result.
Reproduction Steps
Belows are example code to describe the issue.
We see debug logs like:
2024-10-31 13:10:00 calling converseStream()
2024-10-31 13:10:30 called converseStream() <-- it waits 30 seconds until the streaming finished, which is weird.
2024-10-31 13:10:30 looping stream()
2024-10-31 13:10:30 looped stream() <- it doesn't take time to loop as its streaming seems already done.
I might be wrong, but should converseStream() work like following?
2024-10-31 13:10:00 calling converseStream()
2024-10-31 13:10:00 called converseStream() <-- it returns the result as soon as possible
2024-10-31 13:10:00 looping stream()
2024-10-31 13:10:30 looped stream() <-- it takes 30 seconds to finish the streaming.
Hi @gazzoy, thanks for reporting this issue. I will add an item into our backlog for addressing this as soon as we can, but for now would you please be able to use the following workaround:
Describe the bug
When calling the
converseStream()
method from the AWS PHP SDK, the result is supposed to be returned as soon as possible, then we can iteratestream
value in the result until the streaming finished.However, debug logs show that when calling
converseStream()
method, we need to wait for the whole streaming finished, then it returns results, which seems weird to me.Regression Issue
Expected Behavior
converseStream()
should return the result as soon as possible.Current Behavior
converseStream()
does NOT return the result as soon as possible rather it waits until the streaming finished, then it returns the result.Reproduction Steps
Belows are example code to describe the issue.
We see debug logs like:
I might be wrong, but should
converseStream()
work like following?Possible Solution
No response
Additional Information/Context
No response
SDK version used
3.324.11
Environment details (Version of PHP (
php -v
)? OS name and version, etc.)The text was updated successfully, but these errors were encountered: