mirror of
https://github.com/MervinPraison/PraisonAI.git
synced 2026-11-09 17:31:52 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cd91565b12 | ||
|
|
d233d4597c |
No files matched your search
@@ -5,7 +5,7 @@ on: [push, pull_request]
|
||||
jobs:
|
||||
quick-test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
FROM python:3.11-slim
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN pip install flask praisonai==2.2.11 gunicorn markdown
|
||||
RUN pip install flask praisonai==2.2.12 gunicorn markdown
|
||||
EXPOSE 8080
|
||||
CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]
|
||||
@@ -13,7 +13,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
RUN pip install --no-cache-dir \
|
||||
praisonaiagents>=0.0.4 \
|
||||
praisonai_tools \
|
||||
"praisonai==2.2.11" \
|
||||
"praisonai==2.2.12" \
|
||||
"praisonai[chat]" \
|
||||
"embedchain[github,youtube]"
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
RUN pip install --no-cache-dir \
|
||||
praisonaiagents>=0.0.4 \
|
||||
praisonai_tools \
|
||||
"praisonai==2.2.11" \
|
||||
"praisonai==2.2.12" \
|
||||
"praisonai[ui]" \
|
||||
"praisonai[chat]" \
|
||||
"praisonai[realtime]" \
|
||||
|
||||
@@ -13,7 +13,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
RUN pip install --no-cache-dir \
|
||||
praisonaiagents>=0.0.4 \
|
||||
praisonai_tools \
|
||||
"praisonai==2.2.11" \
|
||||
"praisonai==2.2.12" \
|
||||
"praisonai[ui]" \
|
||||
"praisonai[crewai]"
|
||||
|
||||
|
||||
@@ -110,7 +110,7 @@ Loads environment variables from .env file or system and sets them.</p>
|
||||
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.11 gunicorn markdown\n")
|
||||
file.write("RUN pip install flask praisonai==2.2.12 gunicorn markdown\n")
|
||||
file.write("EXPOSE 8080\n")
|
||||
file.write('CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]\n')
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN pip install flask praisonai==2.2.11 watchdog
|
||||
RUN pip install flask praisonai==2.2.12 watchdog
|
||||
|
||||
EXPOSE 5555
|
||||
|
||||
|
||||
+1
-1
@@ -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.11 watchdog
|
||||
RUN pip install flask praisonai==2.2.12 watchdog
|
||||
|
||||
EXPOSE 5555
|
||||
|
||||
|
||||
+1
-1
@@ -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.11 watchdog
|
||||
RUN pip install flask praisonai==2.2.12 watchdog
|
||||
|
||||
EXPOSE 5555
|
||||
|
||||
|
||||
@@ -438,41 +438,25 @@ class AgentsGenerator:
|
||||
if llm_model:
|
||||
llm = PraisonAIModel(
|
||||
model=llm_model.get("model") or os.environ.get("MODEL_NAME") or "openai/gpt-4o",
|
||||
api_key_var=None, # Don't rely on env var lookup
|
||||
base_url=self.config_list[0].get('base_url') if self.config_list else None
|
||||
).get_model()
|
||||
# Override with explicit API key from config_list
|
||||
if self.config_list and self.config_list[0].get('api_key'):
|
||||
llm.api_key = self.config_list[0]['api_key']
|
||||
else:
|
||||
llm = PraisonAIModel(
|
||||
api_key_var=None, # Don't rely on env var lookup
|
||||
base_url=self.config_list[0].get('base_url') if self.config_list else None
|
||||
).get_model()
|
||||
# Override with explicit API key from config_list
|
||||
if self.config_list and self.config_list[0].get('api_key'):
|
||||
llm.api_key = self.config_list[0]['api_key']
|
||||
|
||||
# Configure function calling LLM
|
||||
function_calling_llm_model = details.get('function_calling_llm')
|
||||
if function_calling_llm_model:
|
||||
function_calling_llm = PraisonAIModel(
|
||||
model=function_calling_llm_model.get("model") or os.environ.get("MODEL_NAME") or "openai/gpt-4o",
|
||||
api_key_var=None, # Don't rely on env var lookup
|
||||
base_url=self.config_list[0].get('base_url') if self.config_list else None
|
||||
).get_model()
|
||||
# Override with explicit API key from config_list
|
||||
if self.config_list and self.config_list[0].get('api_key'):
|
||||
function_calling_llm.api_key = self.config_list[0]['api_key']
|
||||
else:
|
||||
function_calling_llm = PraisonAIModel(
|
||||
api_key_var=None, # Don't rely on env var lookup
|
||||
base_url=self.config_list[0].get('base_url') if self.config_list else None
|
||||
).get_model()
|
||||
# Override with explicit API key from config_list
|
||||
if self.config_list and self.config_list[0].get('api_key'):
|
||||
function_calling_llm.api_key = self.config_list[0]['api_key']
|
||||
|
||||
|
||||
# Create CrewAI agent
|
||||
agent = Agent(
|
||||
role=role_filled,
|
||||
|
||||
+1
-1
@@ -56,7 +56,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.2.11 gunicorn markdown\n")
|
||||
file.write("RUN pip install flask praisonai==2.2.12 gunicorn markdown\n")
|
||||
file.write("EXPOSE 8080\n")
|
||||
file.write('CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]\n')
|
||||
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "PraisonAI"
|
||||
version = "2.2.11"
|
||||
version = "2.2.12"
|
||||
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 = ""
|
||||
@@ -89,7 +89,7 @@ autogen = ["pyautogen>=0.2.19", "praisonai-tools>=0.0.15", "crewai"]
|
||||
|
||||
[tool.poetry]
|
||||
name = "PraisonAI"
|
||||
version = "2.2.11"
|
||||
version = "2.2.12"
|
||||
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 = ""
|
||||
|
||||
Reference in new issue
Block a user