Compare commits

...
1 Commits
Author SHA1 Message Date
Mervin Praison e2e9c3f9ee Release v2.3.81 2025-12-23 08:11:31 +00:00
9 changed files with 33 additions and 13 deletions

No files matched your search

+6
View File
@@ -278,6 +278,12 @@ npm install praisonai
| ↳ Git Integration | [Example](examples/python/cli/git_integration_example.py) | [📖](https://docs.praison.ai/docs/cli/git-integration) |
| ↳ Sandbox Execution | [Example](examples/python/cli/sandbox_execution_example.py) | [📖](https://docs.praison.ai/docs/cli/sandbox-execution) |
| ↳ CLI Compare | [Example](examples/compare/cli_compare_basic.py) | [📖](https://docs.praison.ai/docs/cli/compare) |
| ↳ Profile/Benchmark | [Example](#profile-benchmark) | [📖](https://docs.praison.ai/docs/cli/profile) |
| ↳ Auto Mode | [Example](#auto-mode) | [📖](https://docs.praison.ai/docs/cli/auto) |
| ↳ Init | [Example](#init) | [📖](https://docs.praison.ai/docs/cli/init) |
| ↳ File Input | [Example](#file-input) | [📖](https://docs.praison.ai/docs/cli/file-input) |
| ↳ Final Agent | [Example](#final-agent) | [📖](https://docs.praison.ai/docs/cli/final-agent) |
| ↳ Max Tokens | [Example](#max-tokens) | [📖](https://docs.praison.ai/docs/cli/max-tokens) |
| **🧪 Evaluation** | | |
| ↳ Accuracy Evaluation | [Example](examples/eval/accuracy_example.py) | [📖](https://docs.praison.ai/docs/cli/eval) |
| ↳ Performance Evaluation | [Example](examples/eval/performance_example.py) | [📖](https://docs.praison.ai/docs/cli/eval) |
+1 -1
View File
@@ -16,7 +16,7 @@ RUN mkdir -p /root/.praison
# Install Python packages (using latest versions)
RUN pip install --no-cache-dir \
praisonai_tools \
"praisonai>=2.3.80" \
"praisonai>=2.3.81" \
"praisonai[chat]" \
"embedchain[github,youtube]"
+1 -1
View File
@@ -20,7 +20,7 @@ RUN mkdir -p /root/.praison
# Install Python packages (using latest versions)
RUN pip install --no-cache-dir \
praisonai_tools \
"praisonai>=2.3.80" \
"praisonai>=2.3.81" \
"praisonai[ui]" \
"praisonai[chat]" \
"praisonai[realtime]" \
+1 -1
View File
@@ -16,7 +16,7 @@ RUN mkdir -p /root/.praison
# Install Python packages (using latest versions)
RUN pip install --no-cache-dir \
praisonai_tools \
"praisonai>=2.3.80" \
"praisonai>=2.3.81" \
"praisonai[ui]" \
"praisonai[crewai]"
+6
View File
@@ -278,6 +278,12 @@ npm install praisonai
| ↳ Git Integration | [Example](examples/python/cli/git_integration_example.py) | [📖](https://docs.praison.ai/docs/cli/git-integration) |
| ↳ Sandbox Execution | [Example](examples/python/cli/sandbox_execution_example.py) | [📖](https://docs.praison.ai/docs/cli/sandbox-execution) |
| ↳ CLI Compare | [Example](examples/compare/cli_compare_basic.py) | [📖](https://docs.praison.ai/docs/cli/compare) |
| ↳ Profile/Benchmark | [Example](#profile-benchmark) | [📖](https://docs.praison.ai/docs/cli/profile) |
| ↳ Auto Mode | [Example](#auto-mode) | [📖](https://docs.praison.ai/docs/cli/auto) |
| ↳ Init | [Example](#init) | [📖](https://docs.praison.ai/docs/cli/init) |
| ↳ File Input | [Example](#file-input) | [📖](https://docs.praison.ai/docs/cli/file-input) |
| ↳ Final Agent | [Example](#final-agent) | [📖](https://docs.praison.ai/docs/cli/final-agent) |
| ↳ Max Tokens | [Example](#max-tokens) | [📖](https://docs.praison.ai/docs/cli/max-tokens) |
| **🧪 Evaluation** | | |
| ↳ Accuracy Evaluation | [Example](examples/eval/accuracy_example.py) | [📖](https://docs.praison.ai/docs/cli/eval) |
| ↳ Performance Evaluation | [Example](examples/eval/performance_example.py) | [📖](https://docs.praison.ai/docs/cli/eval) |
+2 -2
View File
@@ -3,8 +3,8 @@ 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/v2.3.80.tar.gz"
sha256 `curl -sL https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v2.3.80.tar.gz | shasum -a 256`.split.first
url "https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v2.3.81.tar.gz"
sha256 `curl -sL https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v2.3.81.tar.gz | shasum -a 256`.split.first
license "MIT"
depends_on "[email protected]"
+14 -6
View File
@@ -134,14 +134,14 @@ class ImageHandler(FlagHandler):
config["use_vision"] = True
return config
def describe_image(self, prompt: str, image_path: str, llm: str = None) -> str:
def describe_image(self, prompt: str, image_path: str, llm = None) -> str:
"""
Describe an image using vision-capable LLM.
Args:
prompt: The prompt/question about the image
image_path: Path to the image file
llm: Optional LLM model name (must be vision-capable)
llm: Optional LLM model name (must be vision-capable), can be string or dict
Returns:
Description of the image
@@ -156,7 +156,11 @@ class ImageHandler(FlagHandler):
import litellm
model = llm or DEFAULT_VISION_MODEL
# Handle llm being a dict (from agent_config) or string
if isinstance(llm, dict):
model = llm.get('model', DEFAULT_VISION_MODEL)
else:
model = llm or DEFAULT_VISION_MODEL
try:
# Build message with image
@@ -176,14 +180,14 @@ class ImageHandler(FlagHandler):
logger.error(f"Error describing image: {e}")
return f"Error describing image: {e}"
def describe_multiple_images(self, prompt: str, image_paths: List[str], llm: str = None) -> str:
def describe_multiple_images(self, prompt: str, image_paths: List[str], llm = None) -> str:
"""
Describe multiple images using vision-capable LLM.
Args:
prompt: The prompt/question about the images
image_paths: List of paths to image files
llm: Optional LLM model name
llm: Optional LLM model name, can be string or dict
Returns:
Description of the images
@@ -199,7 +203,11 @@ class ImageHandler(FlagHandler):
import litellm
model = llm or DEFAULT_VISION_MODEL
# Handle llm being a dict (from agent_config) or string
if isinstance(llm, dict):
model = llm.get('model', DEFAULT_VISION_MODEL)
else:
model = llm or DEFAULT_VISION_MODEL
try:
# Build message with all images
+1 -1
View File
@@ -57,7 +57,7 @@ class CloudDeployer:
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.3.80 gunicorn markdown\n")
file.write("RUN pip install flask praisonai==2.3.81 gunicorn markdown\n")
file.write("EXPOSE 8080\n")
file.write('CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]\n')
+1 -1
View File
@@ -1 +1 @@
__version__ = "2.3.80"
__version__ = "2.3.81"