Fix bug when creating dirs for custom providers

This commit is contained in:
Ian Arawjo 2024-01-02 10:36:43 -05:00
parent 0af7bdaedd
commit 965b96e451
2 changed files with 2 additions and 2 deletions

View File

@ -554,7 +554,7 @@ def initCustomProvider():
if not os.path.isdir(provider_scripts_dir):
# Create the directory
try:
os.mkdir(provider_scripts_dir)
os.makedirs(provider_scripts_dir, exist_ok=True)
except Exception as e:
return jsonify({'error': f"Error creating a new directory 'provider_scripts' at filepath {provider_scripts_dir}: {str(e)}"})

View File

@ -6,7 +6,7 @@ def readme():
setup(
name='chainforge',
version='0.2.8.3',
version='0.2.8.4',
packages=find_packages(),
author="Ian Arawjo",
description="A Visual Programming Environment for Prompt Engineering",