Skip to content

Commit

Permalink
fix: LLM - Fixed the async streaming
Browse files Browse the repository at this point in the history
Fixes #2853

PiperOrigin-RevId: 577305447
  • Loading branch information
Ark-kun authored and copybara-github committed Oct 27, 2023
1 parent f1659e8 commit 230d070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google/cloud/aiplatform/_streaming_prediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ async def predict_stream_of_tensor_lists_from_single_tensor_list_async(
inputs=tensor_list,
parameters=parameters_tensor,
)
async for response in prediction_service_async_client.server_streaming_predict(
async for response in await prediction_service_async_client.server_streaming_predict(
request=request
):
yield response.outputs
Expand Down

0 comments on commit 230d070

Please sign in to comment.