googleapis / googleapis/google-cloud-java

Support for metadata labels in VertexAI library

Đang mở
#11,534 2 bình luận 1 reaction 0 người được giao Xem trên GitHub
priority: p3 type: feature request
Ngôn ngữ chính
Java
Star
2.1k
Fork
1.2k
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
154

Mô tả

Thanks for stopping by to let us know something could be better!

**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.

**Is your feature request related to a problem? Please describe.**
Java library for VertexAI does not offer support for adding labels when making `generateContent` calls. This is really useful feature for tracking costs for different labels. And also this is supported by REST call and by python library. Link - https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/add-labels-to-api-calls

**Describe the solution you'd like**
Solution could be the same as in python library
```
GenerativeModel::generateContent(Content content, Map labels)
```

This is the example from python library:
```
prompt = "What is Generative AI?"
response = model.generate_content(
prompt,
# Example Labels
labels={
"team": "research",
"component": "frontend",
"environment": "production",
},
)
```

**Describe alternatives you've considered**
Unfortunately no alternatives in this library. If I want to use labels I need to switch to REST calls and discard this library.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

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

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.