Skip to content
New issue

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

[Vertex AI] Bypass proxy for testing against staging #14235

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

andrewheard
Copy link
Contributor

Do not submit, for temporary testing against the Vertex AI staging API. To use, run gcloud auth print-access-token and set the printed value to the environment variable GCLOUD_ACCESS_TOKEN in Xcode.

cURL Example:

curl \
  -H "Authorization: Bearer $(gcloud auth print-access-token)" \
  -H "Content-Type: application/json" \
  'https://us-central1-staging-aiplatform.sandbox.googleapis.com/v1beta1/projects/{PROJECT_ID}/locations/us-central1/publishers/google/models/{MODEL_NAME}:generateContent' \
--data-binary @- << EOF
{
  "contents": [
    {
      "role": "user",
      "parts": { "text": "Why is the sky blue?" }
    }
  ]
}
EOF

#no-changelog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant