Library initialization fails when environment variable OPENAI_KEY
is missing
#22
Labels
bug
Something isn't working
OPENAI_KEY
is missing
#22
When using RobotframeworkAI library, the library cannot be instantiated when
OPENAI_KEY
is not an environment variable. That breaks already the autocompletion in IDEs with language server plugins.This is the "problem" raised in VSCode (using Robotcode) when typing:
In general, library initialisation should not throw any exception. The initialisation should be lasy Like this, even libdoc cannot be generated when the environment variable is missing. Furthermore, API keys are usually injected by vaults or external mechanisms and are not present when writing test cases.
The text was updated successfully, but these errors were encountered: