gpt_graph.utils.load_env

Created on Mon Apr 15 11:58:07 2024

@author: User

Functions

load_env([file_path])

Load environment variables from a TOML file and set them in os.environ.

gpt_graph.utils.load_env.load_env(file_path=None)[source]

Load environment variables from a TOML file and set them in os.environ.

Args: file_path (str): Path to the TOML file.

Returns: dict: A dictionary of the loaded environment variables.