PraisonAI 2.0.64__cp313-cp313-manylinux_2_39_x86_64.whl → 2.0.66__cp313-cp313-manylinux_2_39_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of PraisonAI might be problematic. Click here for more details.
- praisonai/cli.py +0 -12
- praisonai/deploy.py +1 -1
- praisonai/setup/setup_conda_env.sh +32 -18
- {praisonai-2.0.64.dist-info → praisonai-2.0.66.dist-info}/METADATA +1 -1
- {praisonai-2.0.64.dist-info → praisonai-2.0.66.dist-info}/RECORD +8 -8
- {praisonai-2.0.64.dist-info → praisonai-2.0.66.dist-info}/LICENSE +0 -0
- {praisonai-2.0.64.dist-info → praisonai-2.0.66.dist-info}/WHEEL +0 -0
- {praisonai-2.0.64.dist-info → praisonai-2.0.66.dist-info}/entry_points.txt +0 -0
praisonai/cli.py
CHANGED
|
@@ -25,7 +25,6 @@ CALL_MODULE_AVAILABLE = False
|
|
|
25
25
|
CREWAI_AVAILABLE = False
|
|
26
26
|
AUTOGEN_AVAILABLE = False
|
|
27
27
|
PRAISONAI_AVAILABLE = False
|
|
28
|
-
TRAIN_AVAILABLE = False
|
|
29
28
|
try:
|
|
30
29
|
# Create necessary directories and set CHAINLIT_APP_ROOT
|
|
31
30
|
if "CHAINLIT_APP_ROOT" not in os.environ:
|
|
@@ -72,12 +71,6 @@ try:
|
|
|
72
71
|
except ImportError:
|
|
73
72
|
pass
|
|
74
73
|
|
|
75
|
-
try:
|
|
76
|
-
import accelerate
|
|
77
|
-
TRAIN_AVAILABLE = True
|
|
78
|
-
except ImportError:
|
|
79
|
-
pass
|
|
80
|
-
|
|
81
74
|
logging.basicConfig(level=os.environ.get('LOGLEVEL', 'INFO'), format='%(asctime)s - %(levelname)s - %(message)s')
|
|
82
75
|
logging.getLogger('alembic').setLevel(logging.ERROR)
|
|
83
76
|
logging.getLogger('gradio').setLevel(logging.ERROR)
|
|
@@ -399,13 +392,8 @@ class PraisonAI:
|
|
|
399
392
|
sys.exit(0)
|
|
400
393
|
|
|
401
394
|
elif args.command == 'train':
|
|
402
|
-
if not TRAIN_AVAILABLE:
|
|
403
|
-
print("[red]ERROR: Train feature is not installed. Install with:[/red]")
|
|
404
|
-
print("\npip install \"praisonai[train]\"\n")
|
|
405
|
-
sys.exit(1)
|
|
406
395
|
package_root = os.path.dirname(os.path.abspath(__file__))
|
|
407
396
|
config_yaml_destination = os.path.join(os.getcwd(), 'config.yaml')
|
|
408
|
-
|
|
409
397
|
|
|
410
398
|
elif args.command == 'ui':
|
|
411
399
|
if not CHAINLIT_AVAILABLE:
|
praisonai/deploy.py
CHANGED
|
@@ -56,7 +56,7 @@ class CloudDeployer:
|
|
|
56
56
|
file.write("FROM python:3.11-slim\n")
|
|
57
57
|
file.write("WORKDIR /app\n")
|
|
58
58
|
file.write("COPY . .\n")
|
|
59
|
-
file.write("RUN pip install flask praisonai==2.0.
|
|
59
|
+
file.write("RUN pip install flask praisonai==2.0.66 gunicorn markdown\n")
|
|
60
60
|
file.write("EXPOSE 8080\n")
|
|
61
61
|
file.write('CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]\n')
|
|
62
62
|
|
|
@@ -12,7 +12,7 @@ elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
|
|
12
12
|
# Linux
|
|
13
13
|
MINICONDA_URL="https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh"
|
|
14
14
|
|
|
15
|
-
#
|
|
15
|
+
# Install libcurl development package if not present (Debian based)
|
|
16
16
|
if command -v dpkg &> /dev/null; then
|
|
17
17
|
if ! dpkg -s libcurl4-openssl-dev &> /dev/null; then
|
|
18
18
|
echo "libcurl4-openssl-dev is not installed. Installing..."
|
|
@@ -25,6 +25,24 @@ elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
|
|
25
25
|
echo "Non-Debian based Linux detected. Please ensure libcurl development libraries are installed."
|
|
26
26
|
fi
|
|
27
27
|
|
|
28
|
+
# Check if ollama is installed and executable; if not, install it
|
|
29
|
+
if ! command -v ollama &> /dev/null; then
|
|
30
|
+
echo "Ollama is not installed. Installing Ollama..."
|
|
31
|
+
curl -fsSL https://ollama.com/install.sh | sh
|
|
32
|
+
|
|
33
|
+
# Generate SSH key non-interactively only if it doesn't already exist
|
|
34
|
+
if [ ! -f ~/.ssh/id_ed25519 ]; then
|
|
35
|
+
echo "Generating SSH key for Ollama..."
|
|
36
|
+
ssh-keygen -t ed25519 -N "" -f ~/.ssh/id_ed25519 -q
|
|
37
|
+
else
|
|
38
|
+
echo "SSH key ~/.ssh/id_ed25519 already exists. Skipping generation."
|
|
39
|
+
fi
|
|
40
|
+
echo "Copying SSH key to /usr/share/ollama/.ollama..."
|
|
41
|
+
sudo cp ~/.ssh/id_ed25519 /usr/share/ollama/.ollama
|
|
42
|
+
else
|
|
43
|
+
echo "Ollama is already installed."
|
|
44
|
+
fi
|
|
45
|
+
|
|
28
46
|
elif [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
|
|
29
47
|
# Windows
|
|
30
48
|
MINICONDA_URL="https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe"
|
|
@@ -35,12 +53,12 @@ else
|
|
|
35
53
|
exit 1
|
|
36
54
|
fi
|
|
37
55
|
|
|
38
|
-
# Check if conda is
|
|
56
|
+
# Check if conda is installed
|
|
39
57
|
if ! command -v conda &> /dev/null; then
|
|
40
58
|
echo "Conda is not installed. Installing Miniconda..."
|
|
41
|
-
wget $MINICONDA_URL -O ~/miniconda.sh
|
|
42
|
-
bash ~/miniconda.sh -b -p $HOME/miniconda
|
|
43
|
-
source $HOME/miniconda/bin/activate
|
|
59
|
+
wget "$MINICONDA_URL" -O ~/miniconda.sh
|
|
60
|
+
bash ~/miniconda.sh -b -p "$HOME/miniconda"
|
|
61
|
+
source "$HOME/miniconda/bin/activate"
|
|
44
62
|
conda init
|
|
45
63
|
else
|
|
46
64
|
echo "Conda is already installed."
|
|
@@ -48,38 +66,34 @@ fi
|
|
|
48
66
|
|
|
49
67
|
# Create and activate the Conda environment
|
|
50
68
|
ENV_NAME="praison_env"
|
|
51
|
-
if conda info --envs | grep -q $ENV_NAME; then
|
|
69
|
+
if conda info --envs | grep -q "$ENV_NAME"; then
|
|
52
70
|
echo "Environment $ENV_NAME already exists. Recreating..."
|
|
53
|
-
conda env remove -y -n $ENV_NAME
|
|
71
|
+
conda env remove -y -n "$ENV_NAME"
|
|
54
72
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
55
|
-
|
|
56
|
-
conda create --name $ENV_NAME python=3.10 pytorch=2.3.0 -c pytorch -y
|
|
73
|
+
conda create --name "$ENV_NAME" python=3.10 pytorch=2.3.0 -c pytorch -y
|
|
57
74
|
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
|
58
|
-
|
|
59
|
-
conda create --name $ENV_NAME python=3.10 pytorch=2.3.0 cudatoolkit=11.8 -c pytorch -c nvidia -y
|
|
75
|
+
conda create --name "$ENV_NAME" python=3.10 pytorch=2.3.0 cudatoolkit=11.8 -c pytorch -c nvidia -y
|
|
60
76
|
fi
|
|
61
77
|
else
|
|
62
78
|
echo "Creating new environment $ENV_NAME..."
|
|
63
79
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
64
|
-
|
|
65
|
-
conda create --name $ENV_NAME python=3.10 pytorch=2.3.0 -c pytorch -y
|
|
80
|
+
conda create --name "$ENV_NAME" python=3.10 pytorch=2.3.0 -c pytorch -y
|
|
66
81
|
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
|
67
|
-
|
|
68
|
-
conda create --name $ENV_NAME python=3.10 pytorch=2.3.0 cudatoolkit=11.8 -c pytorch -c nvidia -y
|
|
82
|
+
conda create --name "$ENV_NAME" python=3.10 pytorch=2.3.0 cudatoolkit=11.8 -c pytorch -c nvidia -y
|
|
69
83
|
fi
|
|
70
84
|
fi
|
|
71
85
|
|
|
72
86
|
# Activate the environment
|
|
73
|
-
source $HOME/miniconda/bin/activate $ENV_NAME
|
|
87
|
+
source "$HOME/miniconda/bin/activate" "$ENV_NAME"
|
|
74
88
|
|
|
75
89
|
# Install cmake via conda
|
|
76
90
|
echo "Installing cmake..."
|
|
77
91
|
conda install -y cmake
|
|
78
92
|
|
|
79
93
|
# Get full path of pip within the activated environment
|
|
80
|
-
PIP_FULL_PATH=$(conda run -n $ENV_NAME which pip)
|
|
94
|
+
PIP_FULL_PATH=$(conda run -n "$ENV_NAME" which pip)
|
|
81
95
|
|
|
82
|
-
# Install other packages
|
|
96
|
+
# Install other packages using pip
|
|
83
97
|
$PIP_FULL_PATH install --upgrade pip
|
|
84
98
|
$PIP_FULL_PATH install "xformers==0.0.26.post1"
|
|
85
99
|
$PIP_FULL_PATH install "unsloth[colab-new] @ git+https://github.com/unslothai/unsloth.git@038e6d4c8d40207a87297ab3aaf787c19b1006d1"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: PraisonAI
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.66
|
|
4
4
|
Summary: PraisonAI is an AI Agents Framework with Self Reflection. PraisonAI application combines PraisonAI Agents, AutoGen, and CrewAI into a low-code solution for building and managing multi-agent LLM systems, focusing on simplicity, customisation, and efficient human-agent collaboration.
|
|
5
5
|
Author: Mervin Praison
|
|
6
6
|
Requires-Python: >=3.10,<3.13
|
|
@@ -4,8 +4,8 @@ praisonai/agents_generator.py,sha256=j8lYudAr3wlVBQLng3iYL6mfRqx2i9M6wlryxIVRzDA
|
|
|
4
4
|
praisonai/api/call.py,sha256=krOfTCZM_bdbsNuWQ1PijzCHECkDvEi9jIvvZaDQUUU,11035
|
|
5
5
|
praisonai/auto.py,sha256=uLDm8CU3L_3amZsd55yzf9RdBF1uW-BGSx7nl9ctNZ4,8680
|
|
6
6
|
praisonai/chainlit_ui.py,sha256=bNR7s509lp0I9JlJNvwCZRUZosC64qdvlFCt8NmFamQ,12216
|
|
7
|
-
praisonai/cli.py,sha256=
|
|
8
|
-
praisonai/deploy.py,sha256=
|
|
7
|
+
praisonai/cli.py,sha256=wKf17OzAmDhCWXtP_HDF4UrULCiWV1CI5yTEtCPUi28,24898
|
|
8
|
+
praisonai/deploy.py,sha256=7wfvaDV3Powlr01J50bJnchXAjtRPK1x39MK-Ofa-Ak,6028
|
|
9
9
|
praisonai/inbuilt_tools/__init__.py,sha256=fai4ZJIKz7-iOnGZv5jJX0wmT77PKa4x2jqyaJddKFA,569
|
|
10
10
|
praisonai/inbuilt_tools/autogen_tools.py,sha256=kJdEv61BTYvdHOaURNEpBcWq8Rs-oC03loNFTIjT-ak,4687
|
|
11
11
|
praisonai/inc/__init__.py,sha256=sPDlYBBwdk0VlWzaaM_lG0_LD07lS2HRGvPdxXJFiYg,62
|
|
@@ -30,7 +30,7 @@ praisonai/setup/build.py,sha256=NyTAXQ_UZ8vKo_KwCINp8ctmauZyCMDkw1rys3ay0ec,646
|
|
|
30
30
|
praisonai/setup/config.yaml,sha256=sr_D1RIvv3LQ_eueOMZV0rAUiWTR-n2xuE1RhKK6b34,1211
|
|
31
31
|
praisonai/setup/post_install.py,sha256=rlUYJhT4JXVrL2RQih5VUPr4PQEmpVypoRpe_vJDMBk,730
|
|
32
32
|
praisonai/setup/setup_conda_env.py,sha256=4QiWrqgEObivzOMwfJgWaCPpUEpB68cQ6lFwVwFoufk,816
|
|
33
|
-
praisonai/setup/setup_conda_env.sh,sha256=
|
|
33
|
+
praisonai/setup/setup_conda_env.sh,sha256=aD5Tb_T4UeVtJD5ibYTBB50YWCKh7INdiei2LN1fBig,4081
|
|
34
34
|
praisonai/setup.py,sha256=0jHgKnIPCtBZiGYaYyTz3PzrJI6nBy55VXk2UctXlDo,373
|
|
35
35
|
praisonai/test.py,sha256=OL-wesjA5JTohr8rtr6kWoaS4ImkJg2l0GXJ-dUUfRU,4090
|
|
36
36
|
praisonai/train.py,sha256=m3-N2XWRernBWRg_xRr7bilxhq7WvFJYwxfvjROIjEw,15541
|
|
@@ -82,8 +82,8 @@ praisonai/ui/realtimeclient/tools.py,sha256=IJOYwVOBW5Ocn5_iV9pFkmSKR3WU3YpX3kwF
|
|
|
82
82
|
praisonai/ui/sql_alchemy.py,sha256=oekZOXlRGMJ2SuC-lmgMMIzAmvbMg2DWeGTSpOzbVBM,29674
|
|
83
83
|
praisonai/ui/tools.md,sha256=Ad3YH_ZCLMWlz3mDXllQnQ_S5l55LWqLdcZSh-EXrHI,3956
|
|
84
84
|
praisonai/version.py,sha256=ugyuFliEqtAwQmH4sTlc16YXKYbFWDmfyk87fErB8-8,21
|
|
85
|
-
praisonai-2.0.
|
|
86
|
-
praisonai-2.0.
|
|
87
|
-
praisonai-2.0.
|
|
88
|
-
praisonai-2.0.
|
|
89
|
-
praisonai-2.0.
|
|
85
|
+
praisonai-2.0.66.dist-info/LICENSE,sha256=kqvFysVlnFxYOu0HxCe2HlmZmJtdmNGOxWRRkT9TsWc,1035
|
|
86
|
+
praisonai-2.0.66.dist-info/METADATA,sha256=l9Yy08H7vDjWUxL6OmNvjel84hCDQ6rw6vfEriu8K_4,21942
|
|
87
|
+
praisonai-2.0.66.dist-info/WHEEL,sha256=OiNztsphQWM3l0xJ9BHQRElMnxzHbt1M68r2N60f8T8,110
|
|
88
|
+
praisonai-2.0.66.dist-info/entry_points.txt,sha256=I_xc6a6MNTTfLxYmAxe0rgey0G-_hbY07oFW-ZDnkw4,135
|
|
89
|
+
praisonai-2.0.66.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|