File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 2222 LANGFUSE_PUBLIC_KEY : ${{ secrets.LANGFUSE_PUBLIC_KEY }}
2323 LANGFUSE_SECRET_KEY : ${{ secrets.LANGFUSE_SECRET_KEY }}
2424 LANGFUSE_HOST : ${{ secrets.LANGFUSE_HOST }}
25- LOCAL_CREDENTIALS_CREATE_PAYLOAD : ${{ secrets.LOCAL_CREDENTIALS_CREATE_PAYLOAD }}
25+ LOCAL_CREDENTIALS_ORG_OPENAI_API_KEY : ${{ secrets.LOCAL_CREDENTIALS_ORG_OPENAI_API_KEY }}
2626 LOCAL_CREDENTIALS_API_KEY : ${{ secrets.LOCAL_CREDENTIALS_API_KEY }}
2727
2828 steps :
4747
4848 - name : Create local credentials
4949 run : |
50- curl -X POST http://localhost:8000/api/v1/credentials -H "Content-Type: application/json" -H "X-API-KEY: ${{ env.LOCAL_CREDENTIALS_API_KEY }}" -d "${{ env.LOCAL_CREDENTIALS_CREATE_PAYLOAD }}" -v
50+ curl -X POST "http://localhost:8000/api/v1/credentials/" \
51+ -H "Content-Type: application/json" \
52+ -H "X-API-KEY: ${{ env.LOCAL_CREDENTIALS_ORG_OPENAI_API_KEY }}" \
53+ -d '{
54+ "organization_id": 1,
55+ "project_id": 1,
56+ "is_active": true,
57+ "credential": {
58+ "openai": {
59+ "api_key": "${{ env.LOCAL_CREDENTIALS_ORG_OPENAI_API_KEY }}"
60+ }
61+ }
62+ }'
5163
5264 - name : Run benchmark
5365 id : benchmark
You can’t perform that action at this time.
0 commit comments