来自 Vertex AI 端点的流式响应

问题描述 投票:0回答:1

是否可以STREAM来自 Vertex AI 端点的响应?

例如我想在 python 中做这样的事情

from google.cloud import aiplatform

endpoint = aiplatform.Endpoint(endpoint_name)

predictions_stream = endpoint.predict(instances=[myinputs])

for batch in predictions_stream: 
   print("streamed batch", batch)

machine-learning vertex google-cloud-vertex-ai vertex-ai-pipeline
1个回答
0
投票

我也无法让这个工作

© www.soinside.com 2019 - 2024. All rights reserved.