Skip to content

Instantly share code, notes, and snippets.

@nikolaydubina
Created June 29, 2025 11:49
Show Gist options
  • Save nikolaydubina/27babad711931d82d3242679d8b88008 to your computer and use it in GitHub Desktop.
Save nikolaydubina/27babad711931d82d3242679d8b88008 to your computer and use it in GitHub Desktop.
#!/bin/sh
export PROJECT_ID=...
export LOCATION=us-central1
export OPENAI_API_KEY="$(gcloud auth application-default print-access-token)"
export MODEL_ID="google/gemini-2.5-flash"
export OPENAI_BASE_URL="https://${LOCATION}-aiplatform.googleapis.com/v1beta1/projects/${PROJECT_ID}/locations/${LOCATION}/endpoints/openapi"
echo $OPENAI_API_KEY
echo $MODEL_ID
echo $OPENAI_BASE_URL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment