Package io.codemodder.testutils.llm
Class CodemodderOpenAIKeys
java.lang.Object
io.codemodder.testutils.llm.CodemodderOpenAIKeys
A utility class to check that the
CODEMODDER_OPENAI_API_KEY
environment variable is set
for JUnit tests.-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Return true if and only if we have a non-emptyCODEMODDER_OPENAI_API_KEY
environment variable.
-
Method Details
-
isAvailable
public static boolean isAvailable()Return true if and only if we have a non-emptyCODEMODDER_OPENAI_API_KEY
environment variable.
-