Dave Aitel
08/25/2024, 5:19 PMimport yaml
def process_yaml():
with open("config.yaml") as file:
return yaml.safe_load(file)
config_data = process_yaml()
openai_api_key = config_data["openai"]["api_key"]
anthropic_api_key = config_data["anthropic"]["api_key"]
import os
os.environ["OPENAI_API_KEY"] = openai_api_key
os.environ["ANTHROPIC_API_KEY"] = anthropic_api_key
os.environ["CONTROLFLOW_DEFAULT_LLM"] = "anthropic/claude-3-5-sonnet-20240620"