Skip to content

Commit 9b8c5f6

Browse files
committed
Update version to 2.2.11 across project files
- Incremented PraisonAI version from 2.2.10 to 2.2.11 in `pyproject.toml`, `uv.lock`, and all relevant Dockerfiles for consistency. - Ensured minimal changes to existing code while maintaining versioning accuracy across the project.
1 parent 6d5c8a3 commit 9b8c5f6

File tree

13 files changed

+45
-15
lines changed

13 files changed

+45
-15
lines changed

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM python:3.11-slim
22
WORKDIR /app
33
COPY . .
4-
RUN pip install flask praisonai==2.2.10 gunicorn markdown
4+
RUN pip install flask praisonai==2.2.11 gunicorn markdown
55
EXPOSE 8080
66
CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]

docker/Dockerfile.chat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1313
RUN pip install --no-cache-dir \
1414
praisonaiagents>=0.0.4 \
1515
praisonai_tools \
16-
"praisonai==2.2.10" \
16+
"praisonai==2.2.11" \
1717
"praisonai[chat]" \
1818
"embedchain[github,youtube]"
1919

docker/Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1515
RUN pip install --no-cache-dir \
1616
praisonaiagents>=0.0.4 \
1717
praisonai_tools \
18-
"praisonai==2.2.10" \
18+
"praisonai==2.2.11" \
1919
"praisonai[ui]" \
2020
"praisonai[chat]" \
2121
"praisonai[realtime]" \

docker/Dockerfile.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1313
RUN pip install --no-cache-dir \
1414
praisonaiagents>=0.0.4 \
1515
praisonai_tools \
16-
"praisonai==2.2.10" \
16+
"praisonai==2.2.11" \
1717
"praisonai[ui]" \
1818
"praisonai[crewai]"
1919

docs/api/praisonai/deploy.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ <h2 id="raises">Raises</h2>
110110
file.write(&#34;FROM python:3.11-slim\n&#34;)
111111
file.write(&#34;WORKDIR /app\n&#34;)
112112
file.write(&#34;COPY . .\n&#34;)
113-
file.write(&#34;RUN pip install flask praisonai==2.2.10 gunicorn markdown\n&#34;)
113+
file.write(&#34;RUN pip install flask praisonai==2.2.11 gunicorn markdown\n&#34;)
114114
file.write(&#34;EXPOSE 8080\n&#34;)
115115
file.write(&#39;CMD [&#34;gunicorn&#34;, &#34;-b&#34;, &#34;0.0.0.0:8080&#34;, &#34;api:app&#34;]\n&#39;)
116116

docs/developers/local-development.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ WORKDIR /app
2727

2828
COPY . .
2929

30-
RUN pip install flask praisonai==2.2.10 watchdog
30+
RUN pip install flask praisonai==2.2.11 watchdog
3131

3232
EXPOSE 5555
3333

docs/ui/chat.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ To facilitate local development with live reload, you can use Docker. Follow the
155155

156156
COPY . .
157157

158-
RUN pip install flask praisonai==2.2.10 watchdog
158+
RUN pip install flask praisonai==2.2.11 watchdog
159159

160160
EXPOSE 5555
161161

docs/ui/code.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ To facilitate local development with live reload, you can use Docker. Follow the
208208

209209
COPY . .
210210

211-
RUN pip install flask praisonai==2.2.10 watchdog
211+
RUN pip install flask praisonai==2.2.11 watchdog
212212

213213
EXPOSE 5555
214214

praisonai/agents_generator.py

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,18 +438,40 @@ def _run_crewai(self, config, topic, tools_dict):
438438
if llm_model:
439439
llm = PraisonAIModel(
440440
model=llm_model.get("model") or os.environ.get("MODEL_NAME") or "openai/gpt-4o",
441+
api_key_var=None, # Don't rely on env var lookup
442+
base_url=self.config_list[0].get('base_url') if self.config_list else None
441443
).get_model()
444+
# Override with explicit API key from config_list
445+
if self.config_list and self.config_list[0].get('api_key'):
446+
llm.api_key = self.config_list[0]['api_key']
442447
else:
443-
llm = PraisonAIModel().get_model()
448+
llm = PraisonAIModel(
449+
api_key_var=None, # Don't rely on env var lookup
450+
base_url=self.config_list[0].get('base_url') if self.config_list else None
451+
).get_model()
452+
# Override with explicit API key from config_list
453+
if self.config_list and self.config_list[0].get('api_key'):
454+
llm.api_key = self.config_list[0]['api_key']
444455

445456
# Configure function calling LLM
446457
function_calling_llm_model = details.get('function_calling_llm')
447458
if function_calling_llm_model:
448459
function_calling_llm = PraisonAIModel(
449460
model=function_calling_llm_model.get("model") or os.environ.get("MODEL_NAME") or "openai/gpt-4o",
461+
api_key_var=None, # Don't rely on env var lookup
462+
base_url=self.config_list[0].get('base_url') if self.config_list else None
450463
).get_model()
464+
# Override with explicit API key from config_list
465+
if self.config_list and self.config_list[0].get('api_key'):
466+
function_calling_llm.api_key = self.config_list[0]['api_key']
451467
else:
452-
function_calling_llm = PraisonAIModel().get_model()
468+
function_calling_llm = PraisonAIModel(
469+
api_key_var=None, # Don't rely on env var lookup
470+
base_url=self.config_list[0].get('base_url') if self.config_list else None
471+
).get_model()
472+
# Override with explicit API key from config_list
473+
if self.config_list and self.config_list[0].get('api_key'):
474+
function_calling_llm.api_key = self.config_list[0]['api_key']
453475

454476
# Create CrewAI agent
455477
agent = Agent(

praisonai/deploy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def create_dockerfile(self):
5656
file.write("FROM python:3.11-slim\n")
5757
file.write("WORKDIR /app\n")
5858
file.write("COPY . .\n")
59-
file.write("RUN pip install flask praisonai==2.2.10 gunicorn markdown\n")
59+
file.write("RUN pip install flask praisonai==2.2.11 gunicorn markdown\n")
6060
file.write("EXPOSE 8080\n")
6161
file.write('CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]\n')
6262

0 commit comments

Comments
 (0)