Compare commits

...
1 Commits
Author SHA1 Message Date
Mervin Praison c1f334905e Release v2.3.53 2025-12-19 15:38:30 +00:00
7 changed files with 38 additions and 13 deletions

No files matched your search

+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.52" \
"praisonai>=2.3.53" \
"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.52" \
"praisonai>=2.3.53" \
"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.52" \
"praisonai>=2.3.53" \
"praisonai[ui]" \
"praisonai[crewai]"
+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.52.tar.gz"
sha256 `curl -sL https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v2.3.52.tar.gz | shasum -a 256`.split.first
url "https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v2.3.53.tar.gz"
sha256 `curl -sL https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v2.3.53.tar.gz | shasum -a 256`.split.first
license "MIT"
depends_on "[email protected]"
+31 -6
View File
@@ -3845,22 +3845,47 @@ Now, {final_instruction.lower()}:"""
prompt_session = None
try:
from prompt_toolkit import PromptSession
from prompt_toolkit.completion import WordCompleter
from prompt_toolkit.completion import Completer, Completion
from prompt_toolkit.auto_suggest import AutoSuggestFromHistory
from prompt_toolkit.history import InMemoryHistory
# Custom completer that only triggers on /
class SlashCommandCompleter(Completer):
"""Completer that only shows suggestions when input starts with /"""
def __init__(self, commands):
self.commands = commands
def get_completions(self, document, complete_event):
text = document.text_before_cursor.lstrip()
# Only complete if text starts with /
if not text.startswith('/'):
return
# Get the command part (after /)
cmd_text = text[1:].lower()
# Yield matching commands
for cmd in self.commands:
if cmd.lower().startswith(cmd_text):
# Calculate how much to complete
yield Completion(
f'/{cmd}',
start_position=-len(text),
display=f'/{cmd}'
)
# Create completer for slash commands
commands = ['help', 'exit', 'quit', 'clear', 'tools', 'profile', 'model', 'stats', 'compact', 'undo', 'queue', 'q']
slash_completer = WordCompleter(
[f'/{cmd}' for cmd in commands],
ignore_case=True
)
slash_completer = SlashCommandCompleter(commands)
prompt_session = PromptSession(
message="❯ ",
completer=slash_completer,
auto_suggest=AutoSuggestFromHistory(),
history=InMemoryHistory()
history=InMemoryHistory(),
complete_while_typing=True
)
except ImportError:
pass # Fall back to simple input
+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.52 gunicorn markdown\n")
file.write("RUN pip install flask praisonai==2.3.53 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.52"
__version__ = "2.3.53"