From 5743db5d0330fcc151b0fe8311297cb1bf195b3f Mon Sep 17 00:00:00 2001 From: Justin Hayes Date: Tue, 4 Jun 2024 13:16:14 -0400 Subject: [PATCH] Cohere envvar fix --- examples/pipelines/providers/cohere_manifold_pipeline.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/pipelines/providers/cohere_manifold_pipeline.py b/examples/pipelines/providers/cohere_manifold_pipeline.py index 4bdd7fe..61fcf8b 100644 --- a/examples/pipelines/providers/cohere_manifold_pipeline.py +++ b/examples/pipelines/providers/cohere_manifold_pipeline.py @@ -34,7 +34,9 @@ class Pipeline: self.name = "cohere/" - self.valves = self.Valves(**{"COHERE_API_KEY": os.getenv("COHERE_API_KEY")}) + self.valves = self.Valves( + **{"COHERE_API_KEY": os.getenv("COHERE_API_KEY", "your-api-key-here")} + ) self.pipelines = self.get_cohere_models()