From b4656a60fc7f377147ecb0da27d9b7bbb48802f5 Mon Sep 17 00:00:00 2001 From: Rohit Prasad Date: Tue, 1 Oct 2024 18:21:31 -0700 Subject: [PATCH] Update aisuite/providers/fireworks_provider.py Co-authored-by: Kevin Solorio <103829+ksolo@users.noreply.github.com> --- aisuite/providers/fireworks_provider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aisuite/providers/fireworks_provider.py b/aisuite/providers/fireworks_provider.py index 07fac9f4..4732207b 100644 --- a/aisuite/providers/fireworks_provider.py +++ b/aisuite/providers/fireworks_provider.py @@ -16,7 +16,7 @@ def __init__(self, **config): Initialize the Fireworks provider with the given configuration. The API key is fetched from the config or environment variables. """ - self.api_key = config.get("api_key") or os.getenv("FIREWORKS_API_KEY") + self.api_key = config.get("api_key", os.getenv("FIREWORKS_API_KEY")) if not self.api_key: raise ValueError( "Fireworks API key is missing. Please provide it in the config or set the FIREWORKS_API_KEY environment variable."