Fix error message on missing replicate api token (#332)

This commit is contained in:
Deshraj Yadav
2023-07-20 00:12:27 -07:00
committed by GitHub
parent cc43846d42
commit 2d4c51aa16

View File

@@ -20,7 +20,7 @@ class Llama2App(EmbedChain):
:param config: AppConfig instance to load as configuration. Optional.
"""
if "REPLICATE_API_TOKEN" not in os.environ:
raise ValueError("Please set the REPLICATE_API_TOKEN environment variable to your OpenAI API key.")
raise ValueError("Please set the REPLICATE_API_TOKEN environment variable.")
if config is None:
config = AppConfig()