We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using gemini models via vertex API, it is possible to add gcp labels to API calls (https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/add-labels-to-api-calls). It would be very helpful, if the same was possible for anthropic calls via vertex API.
The text was updated successfully, but these errors were encountered:
Thanks for the request, what would you want the SDK interface to be?
Sorry, something went wrong.
I could imagine, that analogous to Google's generateContent endpoint (see https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.endpoints/generateContent), the MessageCreateParamsBase gets a new property labels that can be used on each create-call, like:
generateContent
MessageCreateParamsBase
labels
const result = await client.messages.create({ messages: [{role: 'user', content: 'Hey Claude!'}], model: 'claude-3-5-sonnet-v2@20241022', labels: { 'component': 'frontend', 'team': 'research' } });
No branches or pull requests
When using gemini models via vertex API, it is possible to add gcp labels to API calls (https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/add-labels-to-api-calls). It would be very helpful, if the same was possible for anthropic calls via vertex API.
The text was updated successfully, but these errors were encountered: