Exact BatchInference job gcsUri output path is missing

Đang mở
#760 3 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@hemasekhar-p đang làm issue này rồi.

Từ ngày 8/1/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

priority: p2 type: bug

Similar to https://github.com/googleapis/java-genai/issues/696, I have no way to get the exact output file path of a batch job response file.

The gcsUri field contains the output URI provided in the request, which is not very helpful as it is only a prefix.
The actual file resides in a subfolder, named {gcsUri}/prediction-model-{timestamp}/predictions.jsonl.
I was not able to correlate the timestamp to any field. It is very similar to the createTime field but not exact.

For example, if I set the gcsUri to be gs://bucket_name/output/ the output file path will be something like gs://bucket_name/output/prediction-model-2025-12-26T20:29:02.829566Z/predictions.jsonl

However, the batch inference UI web console does have an Export Location field that holds the correct output file path. This hopefully means that you can easily expose that to the Java SDK as well.

Can you please fix that or provide any proper workaround?
Currently I have to list all files under the gcsUri prefix and hope there is going to be only one response file.

Ngôn ngữ chính
Java
Star
398
Fork
126
Merge trung bình
1 ngày 12 giờ
Pull request đã merge (30 ngày)
71

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của googleapis/java-genai

Tất cả issue của googleapis/java-genai

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.