Class CodemodderOpenAIKeys

java.lang.Object
io.codemodder.testutils.llm.CodemodderOpenAIKeys

public final class CodemodderOpenAIKeys extends Object
A utility class to check that the CODEMODDER_OPENAI_API_KEY environment variable is set for JUnit tests.
  • Method Details

    • isAvailable

      public static boolean isAvailable()
      Return true if and only if we have a non-empty CODEMODDER_OPENAI_API_KEY environment variable.