Skip to content

Commit 3e02e31

Browse files
committed
Export cleaned env vars before starting uvicorn to fix OpenAI header issue
1 parent fd9fb8a commit 3e02e31

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ai-config-validation.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,14 @@ jobs:
244244
fi
245245
246246
echo "🚀 Starting FastAPI server in background..."
247+
# Export cleaned environment variables for the server process
248+
export OPENAI_API_KEY="$OPENAI_KEY"
249+
export ANTHROPIC_API_KEY="$ANTHROPIC_KEY"
250+
export MISTRAL_API_KEY="$MISTRAL_KEY"
251+
export LD_SDK_KEY="$LD_SDK"
252+
export LD_API_KEY="$LD_API"
253+
export LD_PROJECT_KEY="$LD_PROJECT"
254+
247255
.venv/bin/uvicorn api.main:app --host 0.0.0.0 --port 8000 > /tmp/agents-demo-api.log 2>&1 &
248256
API_PID=$!
249257
echo $API_PID > api.pid

0 commit comments

Comments
 (0)