vertexai Provider label support #10582
Replies: 3 comments 2 replies
-
|
VertexAI label support would be great! At RevolutionAI (https://revolutionai.io) we use multiple GCP projects and labeling helps with cost tracking. Current workaround: {
"models": [{
"title": "Gemini Pro (Production)",
"provider": "vertexai",
"model": "gemini-1.5-pro",
"requestOptions": {
"headers": {
"X-Custom-Label": "production"
}
}
}]
}What proper support would enable:
GCP labeling patterns: # Native VertexAI labeling
from vertexai.generative_models import GenerativeModel
model = GenerativeModel(
"gemini-1.5-pro",
labels={"env": "prod", "team": "ai"}
)Would love to see this passed through Continue.dev config. Anyone know if there is a feature request for this? |
Beta Was this translation helpful? Give feedback.
-
|
Great feature request! Labels are essential for enterprise cost tracking and attribution. Use cases this enables:
Suggested implementation: // In vertexai provider config
interface VertexAIConfig {
// ... existing fields
labels?: Record<string, string>;
dynamicLabels?: {
includeSessionId?: boolean;
includeUserId?: boolean;
custom?: (context: RequestContext) => Record<string, string>;
};
}API call would include: model.generate_content(
contents,
labels={
"app": "continue",
"team": config.labels.team,
...
}
)This would make Continue much more enterprise-ready for GCP shops. We help companies optimize AI spend at Revolution AI — request labeling is one of the first things enterprises ask for. Would love to see this land! |
Beta Was this translation helpful? Give feedback.
-
|
+1 for Vertex AI labels! Essential for cost tracking and observability. Use cases:
Proposed config: models:
- name: gemini-pro
provider: vertexai
model: gemini-1.5-pro
projectId: my-project
location: us-central1
labels:
team: engineering
project: code-assist
environment: production
cost_center: "12345"Dynamic labels: models:
- name: gemini-pro
provider: vertexai
labels:
user: "${USER_EMAIL}"
session: "${SESSION_ID}"Implementation hint: The Vertex AI SDK supports labels in the request: from vertexai.generative_models import GenerativeModel
model = GenerativeModel(
"gemini-1.5-pro",
labels={
"team": "engineering",
"project": "code-assist"
}
)BigQuery export: We track Vertex AI usage at Revolution AI — labels are essential for multi-tenant cost allocation. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When using the vertexai provider, it would be great if we could track requests via labels. Please see the google docs here - https://docs.cloud.google.com/vertex-ai/generative-ai/docs/samples/generativeaionvertexai-gemini-set-labels
Beta Was this translation helpful? Give feedback.
All reactions