# โ
Final Vercel Configuration - WORKING!
## ๐ Status: API is Working!
The test shows HTTP 429 (quota exhausted), which means:
- โ
Authentication working
- โ
Endpoint correct
- โ
Model ID correct
- โ
Permissions correct
- โ ๏ธ Just a rate limit (wait a few seconds and retry)
## ๐ Required Vercel Environment Variables
Set these in Vercel Dashboard โ Settings โ Environment Variables:
### Required Variables:
```
GCP_PROJECT_ID = amgn-app
GCP_LOCATION = global
ANTHROPIC_MODEL_ID = claude-opus-4-5
GOOGLE_APPLICATION_CREDENTIALS_JSON = (paste entire JSON from service-account-oneline.txt)
```
### Optional/Existing Variables (keep these):
```
DATABASE_URL = (your Neon DB URL)
NODE_ENV = production
```
### Remove or Leave Empty:
```
VERTEX_AI_API_KEY = (delete or leave empty - using service account now)
```
## โ ๏ธ Important Notes
1. **Location is `global`** (not `us-central1`):
- Claude Opus 4.5 uses `global` location
- Endpoint: `aiplatform.googleapis.com` (not region-specific)
2. **Model ID is `claude-opus-4-5`**:
- This is the correct model ID you purchased/enabled
- Not `claude-sonnet-4-5` (that was the wrong one)
3. **429 Errors are Normal**:
- Rate limiting is expected during testing
- Wait a few seconds between requests
- Your production usage will have proper quotas
## ๐งช Test After Deployment
Wait 1-2 minutes after updating Vercel, then test:
```bash
curl -X POST "https://linkedin-mcp-mocha.vercel.app/api/products/analyze" \
-H "Content-Type: application/json" \
-d '{
"api_key": "b01a98cddade43cac435ef18e6bf0ffe9937dd8fd2da7910b2b9c4b11284d471",
"name": "AmroPilot",
"website_url": "https://amropilot.com",
"description": "AmroPilot is an AI-powered content creation platform that generates human-like text. It helps content creators, marketers, and SEO professionals create engaging articles that rank, convert, and dominate search results.",
"value_proposition": "Transform your content strategy with AI that understands search intent, creates engaging articles, and optimizes for maximum visibility. Generate content that bypasses AI detection and ranks on Google.",
"target_audience": "Content creators, SEO professionals, digital marketers, content marketing agencies, bloggers, online businesses"
}' | python -m json.tool
```
If you get a successful response, everything is working! โ
## ๐ Git Push Command
```bash
cd garbage/linkedin-lead-mcp && git add -A && git commit -m "Fix Vertex AI endpoint for global location and update to claude-opus-4-5" && git push origin master
```