diff --git a/.env.example b/.env.example index 2bdf8d3f..ba9ba152 100644 --- a/.env.example +++ b/.env.example @@ -5,6 +5,9 @@ LANGFUSE_SECRET_KEY="sk-lf-1234567890" # OpenAI API key for e2e tests OPENAI_API_KEY= +# AutoEvals defaults to Braintrust's proxy unless this is set. +# See https://github.com/braintrustdata/autoevals#using-other-ai-providers +OPENAI_BASE_URL="https://api.openai.com/v1" # Min log level LANGFUSE_LOG_LEVEL=INFO diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 4fa6d54f..ad2f838f 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -52,7 +52,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4.35.4 + uses: github/codeql-action/init@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4.35.5 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -70,7 +70,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4.35.4 + uses: github/codeql-action/autobuild@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4.35.5 # â„šī¸ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun @@ -83,6 +83,6 @@ jobs: # ./location_of_script_within_repo/buildscript.sh - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4.35.4 + uses: github/codeql-action/analyze@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4.35.5 with: category: "/language:${{matrix.language}}" diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index 8e90c5e4..0be66323 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -26,7 +26,7 @@ jobs: with: persist-credentials: false - name: Run zizmor - uses: zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3 + uses: zizmorcore/zizmor-action@a16621b09c6db4281f81a93cb393b05dcd7b7165 # v0.5.5 with: advanced-security: ${{ github.event_name == 'push' && 'true' || 'false' }} min-severity: low diff --git a/vitest.setup.ts b/vitest.setup.ts index a2996ef4..05645405 100644 --- a/vitest.setup.ts +++ b/vitest.setup.ts @@ -2,3 +2,7 @@ import { config } from "dotenv"; import { resolve } from "path"; config({ path: resolve(process.cwd(), ".env"), quiet: true }); + +// AutoEvals defaults to Braintrust's proxy unless this is set. +// See https://github.com/braintrustdata/autoevals#using-other-ai-providers +process.env.OPENAI_BASE_URL ??= "https://api.openai.com/v1";