From 56b0afbf2c6c56e558c93ae0c2b8e5c8ea844a35 Mon Sep 17 00:00:00 2001 From: MervinPraison Date: Sat, 11 Jan 2025 16:12:41 +0000 Subject: [PATCH] Update PraisonAI to version 2.0.41 and enhance documentation - Updated PraisonAI package version from 2.0.40 to 2.0.41 in Dockerfile, pyproject.toml, and related files. - Adjusted installation command in Dockerfile and deploy scripts to reflect the new version. - Improved logging in agents_generator.py to handle missing tools.py file gracefully. - Updated deployment documentation to ensure consistency with the new version. - Adjusted dependencies in uv.lock for compatibility with the updated PraisonAI version. --- Dockerfile | 2 +- docs/api/praisonai/deploy.html | 2 +- praisonai.rb | 2 +- praisonai/agents_generator.py | 2 ++ praisonai/deploy.py | 2 +- pyproject.toml | 4 ++-- uv.lock | 2 +- 7 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index e6be138..50bc20c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM python:3.11-slim WORKDIR /app COPY . . -RUN pip install flask praisonai==2.0.40 gunicorn markdown +RUN pip install flask praisonai==2.0.41 gunicorn markdown EXPOSE 8080 CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"] diff --git a/docs/api/praisonai/deploy.html b/docs/api/praisonai/deploy.html index c34e093..3c0aa76 100644 --- a/docs/api/praisonai/deploy.html +++ b/docs/api/praisonai/deploy.html @@ -110,7 +110,7 @@

Raises

file.write("FROM python:3.11-slim\n") file.write("WORKDIR /app\n") file.write("COPY . .\n") - file.write("RUN pip install flask praisonai==2.0.40 gunicorn markdown\n") + file.write("RUN pip install flask praisonai==2.0.41 gunicorn markdown\n") file.write("EXPOSE 8080\n") file.write('CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]\n') diff --git a/praisonai.rb b/praisonai.rb index 6a8d03e..37c7e5b 100644 --- a/praisonai.rb +++ b/praisonai.rb @@ -3,7 +3,7 @@ class Praisonai < Formula desc "AI tools for various AI applications" homepage "https://github.com/MervinPraison/PraisonAI" - url "https://github.com/MervinPraison/PraisonAI/archive/refs/tags/2.0.40.tar.gz" + url "https://github.com/MervinPraison/PraisonAI/archive/refs/tags/2.0.41.tar.gz" sha256 "1828fb9227d10f991522c3f24f061943a254b667196b40b1a3e4a54a8d30ce32" # Replace with actual SHA256 checksum license "MIT" diff --git a/praisonai/agents_generator.py b/praisonai/agents_generator.py index 6858024..1122e7e 100644 --- a/praisonai/agents_generator.py +++ b/praisonai/agents_generator.py @@ -234,6 +234,8 @@ def load_tools_from_tools_py(self): self.logger.debug(f"Loaded {len(tools_list)} tool functions from tools.py") self.logger.debug(f"Tools list: {tools_list}") + except FileNotFoundError: + self.logger.debug("tools.py not found in current directory") except Exception as e: self.logger.warning(f"Error loading tools from tools.py: {e}") diff --git a/praisonai/deploy.py b/praisonai/deploy.py index 4a64c2c..7690ea1 100644 --- a/praisonai/deploy.py +++ b/praisonai/deploy.py @@ -56,7 +56,7 @@ def create_dockerfile(self): file.write("FROM python:3.11-slim\n") file.write("WORKDIR /app\n") file.write("COPY . .\n") - file.write("RUN pip install flask praisonai==2.0.40 gunicorn markdown\n") + file.write("RUN pip install flask praisonai==2.0.41 gunicorn markdown\n") file.write("EXPOSE 8080\n") file.write('CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]\n') diff --git a/pyproject.toml b/pyproject.toml index e2ae87d..14110f9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "PraisonAI" -version = "2.0.40" +version = "2.0.41" description = "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." readme = "README.md" license = "" @@ -84,7 +84,7 @@ autogen = ["pyautogen>=0.2.19", "praisonai-tools>=0.0.7", "crewai"] [tool.poetry] name = "PraisonAI" -version = "2.0.40" +version = "2.0.41" description = "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." authors = ["Mervin Praison"] license = "" diff --git a/uv.lock b/uv.lock index ff0aabf..d8124ab 100644 --- a/uv.lock +++ b/uv.lock @@ -3060,7 +3060,7 @@ wheels = [ [[package]] name = "praisonai" -version = "2.0.40" +version = "2.0.41" source = { editable = "." } dependencies = [ { name = "instructor" },