Find answers from the community

Updated 3 months ago

hey got this error but cant resolve it

hey, got this error but cant resolve it :/ --> 141 run_manager.on_chain_end(outputs)
142 return self.prep_outputs(inputs, outputs, return_only_outputs)
...
54 def validate(self):
55 if not self._config.api_key: # None or empty string invalid
---> 56 raise ApiKeyError("You haven't specified an Api-Key.")

ApiKeyError: "You haven't specified an Api-Key."
V
4 comments
drop the code
OPENAI_API_KEY = ""
i had a similar issue but, i'm trying to use local LLMs, so that might not be the same thing causing the problem and the same solving :/
Add a reply
Sign up and join the conversation on Discord