From 03af2828bb311c06606cc344f7d782adfb6a6374 Mon Sep 17 00:00:00 2001 From: l31bn1tz Date: Thu, 20 Jun 2024 17:53:13 +0200 Subject: [PATCH] Fix bug leading to openai failure call The open ai key was not given into the actual API call --- examples/pipelines/providers/openai_pipeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pipelines/providers/openai_pipeline.py b/examples/pipelines/providers/openai_pipeline.py index b3742275..a7f97e53 100644 --- a/examples/pipelines/providers/openai_pipeline.py +++ b/examples/pipelines/providers/openai_pipeline.py @@ -45,7 +45,7 @@ def pipe( print(messages) print(user_message) - OPENAI_API_KEY = "your-openai-api-key-here" + OPENAI_API_KEY = self.valves.OPENAI_API_KEY MODEL = "gpt-3.5-turbo" headers = {}