Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN mkdir -p /root/.praison
# Install Python packages (using latest versions)
RUN pip install --no-cache-dir \
flask \
"praisonai>=2.2.24" \
"praisonai>=2.2.25" \
"praisonai[api]" \
gunicorn \
markdown
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.chat
Original file line number Diff line number Diff line change
Expand Up @@ -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.2.24" \
"praisonai>=2.2.25" \
"praisonai[chat]" \
"embedchain[github,youtube]"

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -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.2.24" \
"praisonai>=2.2.25" \
"praisonai[ui]" \
"praisonai[chat]" \
"praisonai[realtime]" \
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.ui
Original file line number Diff line number Diff line change
Expand Up @@ -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.2.24" \
"praisonai>=2.2.25" \
"praisonai[ui]" \
"praisonai[crewai]"

Expand Down
4 changes: 2 additions & 2 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ healthcheck:
## 📦 Package Versions

All Docker images use consistent, up-to-date versions:
- PraisonAI: `>=2.2.24`
- PraisonAI: `>=2.2.25`
- PraisonAI Agents: `>=0.0.92`
- Python: `3.11-slim`

Expand Down Expand Up @@ -218,7 +218,7 @@ docker-compose up -d
### Version Pinning
To use specific versions, update the Dockerfile:
```dockerfile
RUN pip install "praisonai==2.2.24" "praisonaiagents==0.0.92"
RUN pip install "praisonai==2.2.25" "praisonaiagents==0.0.92"
```

## 🌐 Production Deployment
Expand Down
2 changes: 1 addition & 1 deletion docs/api/praisonai/deploy.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ <h2 id="raises">Raises</h2>
file.write(&#34;FROM python:3.11-slim\n&#34;)
file.write(&#34;WORKDIR /app\n&#34;)
file.write(&#34;COPY . .\n&#34;)
file.write(&#34;RUN pip install flask praisonai==2.2.24 gunicorn markdown\n&#34;)
file.write(&#34;RUN pip install flask praisonai==2.2.25 gunicorn markdown\n&#34;)
file.write(&#34;EXPOSE 8080\n&#34;)
file.write(&#39;CMD [&#34;gunicorn&#34;, &#34;-b&#34;, &#34;0.0.0.0:8080&#34;, &#34;api:app&#34;]\n&#39;)

Expand Down
2 changes: 1 addition & 1 deletion docs/developers/local-development.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ WORKDIR /app

COPY . .

RUN pip install flask praisonai==2.2.24 watchdog
RUN pip install flask praisonai==2.2.25 watchdog

EXPOSE 5555

Expand Down
2 changes: 1 addition & 1 deletion docs/ui/chat.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ To facilitate local development with live reload, you can use Docker. Follow the

COPY . .

RUN pip install flask praisonai==2.2.24 watchdog
RUN pip install flask praisonai==2.2.25 watchdog

EXPOSE 5555

Expand Down
2 changes: 1 addition & 1 deletion docs/ui/code.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ To facilitate local development with live reload, you can use Docker. Follow the

COPY . .

RUN pip install flask praisonai==2.2.24 watchdog
RUN pip install flask praisonai==2.2.25 watchdog

EXPOSE 5555

Expand Down
2 changes: 1 addition & 1 deletion src/praisonai-agents/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "praisonaiagents"
version = "0.0.95"
version = "0.0.96"
description = "Praison AI agents for completing complex tasks with Self Reflection Agents"
requires-python = ">=3.10"
authors = [
Expand Down
2 changes: 1 addition & 1 deletion src/praisonai-agents/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/praisonai/praisonai.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.2.24.tar.gz"
sha256 `curl -sL https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v2.2.24.tar.gz | shasum -a 256`.split.first
url "https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v2.2.25.tar.gz"
sha256 `curl -sL https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v2.2.25.tar.gz | shasum -a 256`.split.first
license "MIT"

depends_on "python@3.11"
Expand Down
2 changes: 1 addition & 1 deletion src/praisonai/praisonai/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.2.24 gunicorn markdown\n")
file.write("RUN pip install flask praisonai==2.2.25 gunicorn markdown\n")
file.write("EXPOSE 8080\n")
file.write('CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]\n')

Expand Down
2 changes: 1 addition & 1 deletion src/praisonai/praisonai/ui/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from dotenv import load_dotenv
from PIL import Image
from tavily import TavilyClient
from crawl4ai import AsyncAsyncWebCrawler
from crawl4ai import AsyncWebCrawler

# Local application/library imports
import chainlit as cl
Expand Down
2 changes: 1 addition & 1 deletion src/praisonai/praisonai/ui/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from PIL import Image
from context import ContextGatherer
from tavily import TavilyClient
from crawl4ai import AsyncAsyncWebCrawler
from crawl4ai import AsyncWebCrawler

# Local application/library imports
import chainlit as cl
Expand Down
28 changes: 20 additions & 8 deletions src/praisonai/praisonai/ui/realtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def import_tools_from_file(file_path):
@cl.on_chat_start
async def start():
initialize_db()
model_name = load_setting("model_name") or os.getenv("MODEL_NAME", "gpt-4o-mini-realtime-preview")
model_name = os.getenv("MODEL_NAME", "gpt-4o-mini-realtime-preview-2024-12-17")
cl.user_session.set("model_name", model_name)
cl.user_session.set("message_history", []) # Initialize message history
logger.debug(f"Model name: {model_name}")
Expand All @@ -238,7 +238,7 @@ async def start():
# TextInput(
# id="model_name",
# label="Enter the Model Name",
# placeholder="e.g., gpt-4o-mini-realtime-preview",
# placeholder="e.g., gpt-4o-mini-realtime-preview-2024-12-17",
# initial=model_name
# )
# ]
Expand Down Expand Up @@ -382,7 +382,8 @@ async def on_audio_start():
openai_realtime = cl.user_session.get("openai_realtime")

if not openai_realtime.is_connected():
await openai_realtime.connect()
model_name = cl.user_session.get("model_name", "gpt-4o-mini-realtime-preview-2024-12-17")
await openai_realtime.connect(model_name)

logger.info("Connected to OpenAI realtime")
return True
Expand All @@ -394,11 +395,22 @@ async def on_audio_start():

@cl.on_audio_chunk
async def on_audio_chunk(chunk: cl.InputAudioChunk):
openai_realtime: RealtimeClient = cl.user_session.get("openai_realtime")
openai_realtime: RealtimeClient = cl.user_session.get("openai_realtime")

if not openai_realtime:
logger.debug("No realtime client available")
return

if openai_realtime.is_connected():
await openai_realtime.append_input_audio(chunk.data)
try:
success = await openai_realtime.append_input_audio(chunk.data)
if not success:
logger.debug("Failed to append audio data - connection may be lost")
except Exception as e:
logger.debug(f"Error processing audio chunk: {e}")
# Optionally try to reconnect here if needed
else:
logger.info("RealtimeClient is not connected")
logger.debug("RealtimeClient is not connected - audio chunk ignored")

@cl.on_audio_end
@cl.on_chat_end
Expand All @@ -423,14 +435,14 @@ def auth_callback(username: str, password: str):
@cl.on_chat_resume
async def on_chat_resume(thread: ThreadDict):
logger.info(f"Resuming chat: {thread['id']}")
model_name = load_setting("model_name") or os.getenv("MODEL_NAME") or "gpt-4o-mini-realtime-preview"
model_name = os.getenv("MODEL_NAME") or "gpt-4o-mini-realtime-preview-2024-12-17"
logger.debug(f"Model name: {model_name}")
settings = cl.ChatSettings(
[
TextInput(
id="model_name",
label="Enter the Model Name",
placeholder="e.g., gpt-4o-mini-realtime-preview",
placeholder="e.g., gpt-4o-mini-realtime-preview-2024-12-17",
initial=model_name
)
]
Expand Down
Loading
Loading