From 4f0ef1a784673aa0d5776ddf7cb1061040f54ab8 Mon Sep 17 00:00:00 2001 From: Rohit Prasad Date: Tue, 1 Oct 2024 18:21:38 -0700 Subject: [PATCH] Update aisuite/providers/together_provider.py Co-authored-by: Kevin Solorio <103829+ksolo@users.noreply.github.com> --- aisuite/providers/together_provider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aisuite/providers/together_provider.py b/aisuite/providers/together_provider.py index aaf60ca5..9e1ef857 100644 --- a/aisuite/providers/together_provider.py +++ b/aisuite/providers/together_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("TOGETHER_API_KEY") + self.api_key = config.get("api_key", os.getenv("TOGETHER_API_KEY")) if not self.api_key: raise ValueError( "Together API key is missing. Please provide it in the config or set the TOGETHER_API_KEY environment variable."