Skip to content

Commit

Permalink
Fix branch tests with empty API Key (openai#1440)
Browse files Browse the repository at this point in the history
Running tests from people's forked repos don't share secrets. Attempt to
update the tests so CI starts passing again
  • Loading branch information
etr2460 authored Dec 20, 2023
1 parent 0108dd7 commit 8c43b20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion evals/elsuite/make_me_say/makemesay_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ def finished_bot_vs_bot_game(empty_bot_vs_bot_game: Game) -> Game:


def _is_api_key_set() -> bool:
return os.environ.get("OPENAI_API_KEY") is not None
api_key = os.environ.get("OPENAI_API_KEY")
return api_key not in [None, ""]


def test_player_cant_play_against_themselves(
Expand Down

0 comments on commit 8c43b20

Please sign in to comment.