Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: env var fallback for API keys #120

Open
jamesbraza opened this issue May 30, 2024 · 0 comments
Open

Docs: env var fallback for API keys #120

jamesbraza opened this issue May 30, 2024 · 0 comments

Comments

@jamesbraza
Copy link
Contributor

I am pretty sure these are equivalent:

      - uses: promptfoo/promptfoo-action@v1
        with:
          openai-api-key: ${{ secrets.OPENAI_API_KEY }}
          anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
          ...
        env:
          ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
          OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

Can we document that it's possible to use env vars, instead of openai-api-key/anthropic-api-key args themselves for API keys?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant