Skip to content

Commit b55e943

Browse files
committed
Merge remote-tracking branch 'origin/main' into prod
2 parents 842e05d + daa799b commit b55e943

76 files changed

Lines changed: 10388 additions & 1811 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy-backend-aws.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -479,10 +479,10 @@ jobs:
479479
environment: ${{ github.ref_name == 'prod' && 'prod' || 'dev' }}
480480
env:
481481
FIREBASE_PROJECT_ID: ${{ vars.BACKEND_FIREBASE_PROJECT_ID || 'fpai-cbcb2' }}
482-
OPENAI_MODEL: ${{ vars.BACKEND_OPENAI_MODEL || 'gpt-5.2' }}
482+
OPENAI_MODEL: ${{ vars.BACKEND_OPENAI_MODEL || 'gpt-5.4' }}
483483
API_KEYS_SECRET_ID: ${{ vars.BACKEND_API_KEYS_SECRET_ID }}
484-
ALLOWED_ORIGINS: ${{ vars.BACKEND_ALLOWED_ORIGINS || 'http://localhost:3000,http://localhost:5173,https://fpai.reunifylabs.com,https://d1gyb6wodlq2q2.cloudfront.net' }}
485-
ASSETS_ALLOWED_ORIGINS: ${{ vars.BACKEND_ASSETS_ALLOWED_ORIGINS || 'http://localhost:3000,http://localhost:5173,https://d1gyb6wodlq2q2.cloudfront.net,https://fpai.reunifylabs.com' }}
484+
ALLOWED_ORIGINS: ${{ vars.BACKEND_ALLOWED_ORIGINS || 'http://localhost:3000,http://localhost:5173,https://fpai.reunifylabs.com,https://d3qsqv0u3opa26.cloudfront.net' }}
485+
ASSETS_ALLOWED_ORIGINS: ${{ vars.BACKEND_ASSETS_ALLOWED_ORIGINS || 'http://localhost:3000,http://localhost:5173,https://d3qsqv0u3opa26.cloudfront.net,https://fpai.reunifylabs.com' }}
486486
SHARE_PUBLIC_BASE_URL: ${{ vars.BACKEND_SHARE_PUBLIC_BASE_URL || 'https://fpai.reunifylabs.com' }}
487487
REQUIRE_BRAVE_API_KEY: ${{ vars.BACKEND_REQUIRE_BRAVE_API_KEY || 'false' }}
488488
steps:
@@ -526,6 +526,7 @@ jobs:
526526
- name: Sync secrets to AWS Secrets Manager
527527
env:
528528
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
529+
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
529530
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
530531
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
531532
BRAVE_API_KEY: ${{ secrets.BRAVE_API_KEY }}
@@ -572,12 +573,14 @@ jobs:
572573
573574
UPDATED_SECRET=$(printf '%s' "$CURRENT_SECRET" \
574575
| jq --arg openai_key "$OPENAI_API_KEY" \
576+
--arg anthropic_key "$ANTHROPIC_API_KEY" \
575577
--arg gemini_key "$EFFECTIVE_GEMINI_API_KEY" \
576578
--arg brave_key "$BRAVE_API_KEY" \
577579
--arg firebase_sa "$FIREBASE_SERVICE_ACCOUNT_JSON" \
578580
'.OPENAI_API_KEY = $openai_key
579581
| .GEMINI_API_KEY = $gemini_key
580582
| .FIREBASE_SERVICE_ACCOUNT_JSON = $firebase_sa
583+
| if (($anthropic_key // "") | length) > 0 then .ANTHROPIC_API_KEY = $anthropic_key else . end
581584
| if (($brave_key // "") | length) > 0 then .BRAVE_API_KEY = $brave_key else . end')
582585
583586
if [ "$SECRET_EXISTS" = "true" ]; then
@@ -591,6 +594,11 @@ jobs:
591594
fi
592595
593596
echo "✅ Updated OPENAI_API_KEY + GEMINI_API_KEY + FIREBASE_SERVICE_ACCOUNT_JSON in Secrets Manager ($SECRET_ID)"
597+
if [ -n "$ANTHROPIC_API_KEY" ]; then
598+
echo "✅ ANTHROPIC_API_KEY was also updated in Secrets Manager"
599+
else
600+
echo "INFO: ANTHROPIC_API_KEY not provided; existing Secrets Manager value preserved"
601+
fi
594602
if [ -n "$BRAVE_API_KEY" ]; then
595603
echo "✅ BRAVE_API_KEY was also updated in Secrets Manager"
596604
else
@@ -629,7 +637,7 @@ jobs:
629637
REQUIRED_ORIGINS=(
630638
"http://localhost:3000"
631639
"http://localhost:5173"
632-
"https://d1gyb6wodlq2q2.cloudfront.net"
640+
"https://d3qsqv0u3opa26.cloudfront.net"
633641
"https://fpai.reunifylabs.com"
634642
)
635643

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ backend/math_to_manim_temp/
6363
backend/test_gen_only.py
6464
backend/test_manim_tool.py
6565

66+
# Playwright artifacts
67+
output/playwright/
68+
6669
# Deployment Info (Generated)
6770
# API_ENDPOINT.md (Choosing to commit this for team visibility, uncomment if local only)
6871
fpai-cbcb2-firebase-adminsdk-fbsvc-5feb40f951.json

0 commit comments

Comments
 (0)