fixed key not grabbing the value correctly

This commit is contained in:
Jason Schleifer
2024-11-01 09:20:03 +13:00
parent 80d17b6b98
commit fa06baa71e
+1 -1
View File
@@ -96,7 +96,7 @@ class GriptapeSettings:
def get_settings_key_or_use_env(self, env, root="Griptape"):
"""Get an environment variable from the OS"""
api_key = self.get_settings_key(f"{root}.{env}")
api_key = self.get_settings_key(env, root=root)
if not api_key:
api_key = os.getenv(env, None)
if not api_key: