common / util.py
Refactor : pass variable & prompt template by UAML file
59ba192
raw
history blame contribute delete
207 Bytes
import os
import yaml
def getYamlConfig():
file_path = os.path.join(os.path.dirname(__file__), 'config.yaml')
with open(file_path, 'r', encoding='utf-8') as file:
return yaml.safe_load(file)