PraisonAI 1.0.5__cp312-cp312-manylinux_2_35_x86_64.whl → 1.0.6__cp312-cp312-manylinux_2_35_x86_64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of PraisonAI might be problematic. Click here for more details.

praisonai/deploy.py CHANGED
@@ -56,7 +56,7 @@ class CloudDeployer:
56
56
  file.write("FROM python:3.11-slim\n")
57
57
  file.write("WORKDIR /app\n")
58
58
  file.write("COPY . .\n")
59
- file.write("RUN pip install flask praisonai==1.0.5 gunicorn markdown\n")
59
+ file.write("RUN pip install flask praisonai==1.0.6 gunicorn markdown\n")
60
60
  file.write("EXPOSE 8080\n")
61
61
  file.write('CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]\n')
62
62
 
praisonai/ui/chat.py CHANGED
@@ -323,6 +323,37 @@ tools = [{
323
323
  }
324
324
  }] if tavily_api_key else []
325
325
 
326
+ # Authentication configuration
327
+ AUTH_PASSWORD_ENABLED = os.getenv("AUTH_PASSWORD_ENABLED", "true").lower() == "true" # Password authentication enabled by default
328
+ AUTH_OAUTH_ENABLED = os.getenv("AUTH_OAUTH_ENABLED", "false").lower() == "true" # OAuth authentication disabled by default
329
+
330
+ username = os.getenv("CHAINLIT_USERNAME", "admin")
331
+ password = os.getenv("CHAINLIT_PASSWORD", "admin")
332
+
333
+ def auth_callback(u: str, p: str):
334
+ if (u, p) == (username, password):
335
+ return cl.User(identifier=username, metadata={"role": "ADMIN", "provider": "credentials"})
336
+ return None
337
+
338
+ def oauth_callback(
339
+ provider_id: str,
340
+ token: str,
341
+ raw_user_data: Dict[str, str],
342
+ default_user: cl.User,
343
+ ) -> Optional[cl.User]:
344
+ return default_user
345
+
346
+ if AUTH_PASSWORD_ENABLED:
347
+ auth_callback = cl.password_auth_callback(auth_callback)
348
+
349
+ if AUTH_OAUTH_ENABLED:
350
+ oauth_callback = cl.oauth_callback(oauth_callback)
351
+
352
+ async def send_count():
353
+ await cl.Message(
354
+ f"Create step counter: {create_step_counter}", disable_feedback=True
355
+ ).send()
356
+
326
357
  @cl.on_chat_start
327
358
  async def start():
328
359
  model_name = load_setting("model_name") or os.getenv("MODEL_NAME", "gpt-4o-mini")
@@ -516,23 +547,6 @@ User Question: {message.content}
516
547
  msg.content = full_response
517
548
  await msg.update()
518
549
 
519
- username = os.getenv("CHAINLIT_USERNAME", "admin")
520
- password = os.getenv("CHAINLIT_PASSWORD", "admin")
521
-
522
- @cl.password_auth_callback
523
- def auth_callback(u: str, p: str):
524
- if (u, p) == (username, password):
525
- return cl.User(
526
- identifier=username, metadata={"role": "ADMIN", "provider": "credentials"}
527
- )
528
- else:
529
- return None
530
-
531
- async def send_count():
532
- await cl.Message(
533
- f"Create step counter: {create_step_counter}", disable_feedback=True
534
- ).send()
535
-
536
550
  @cl.on_chat_resume
537
551
  async def on_chat_resume(thread: ThreadDict):
538
552
  logger.info(f"Resuming chat: {thread['id']}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PraisonAI
3
- Version: 1.0.5
3
+ Version: 1.0.6
4
4
  Summary: PraisonAI application combines AutoGen and CrewAI or similar frameworks into a low-code solution for building and managing multi-agent LLM systems, focusing on simplicity, customization, and efficient human-agent collaboration.
5
5
  Author: Mervin Praison
6
6
  Requires-Python: >=3.10,<3.13
@@ -5,7 +5,7 @@ praisonai/api/call.py,sha256=iHdAlgIH_oTsEbjaGGu1Jjo6DTfMR-SfFdtSxnOLCeY,11032
5
5
  praisonai/auto.py,sha256=NDQiTV8ex_NE5C6AoY26-gMyLZNYrfthgQ6G0Dn1uhU,8304
6
6
  praisonai/chainlit_ui.py,sha256=bNR7s509lp0I9JlJNvwCZRUZosC64qdvlFCt8NmFamQ,12216
7
7
  praisonai/cli.py,sha256=Rg6vikTv4LHR1R6BIEzcaBWFvkdRZr0nOkMi6RCPKh8,21224
8
- praisonai/deploy.py,sha256=CbQA0KsYhsb98t0aY9-RVx88KA65pWPPRcwy5TTLl48,6027
8
+ praisonai/deploy.py,sha256=yJYuxwT5HuFrqDFz2KAzrhY7HQCsT_b5PmjWe_2S6ok,6027
9
9
  praisonai/inbuilt_tools/__init__.py,sha256=fai4ZJIKz7-iOnGZv5jJX0wmT77PKa4x2jqyaJddKFA,569
10
10
  praisonai/inbuilt_tools/autogen_tools.py,sha256=kJdEv61BTYvdHOaURNEpBcWq8Rs-oC03loNFTIjT-ak,4687
11
11
  praisonai/inc/__init__.py,sha256=sPDlYBBwdk0VlWzaaM_lG0_LD07lS2HRGvPdxXJFiYg,62
@@ -33,7 +33,7 @@ praisonai/setup.py,sha256=0jHgKnIPCtBZiGYaYyTz3PzrJI6nBy55VXk2UctXlDo,373
33
33
  praisonai/test.py,sha256=OL-wesjA5JTohr8rtr6kWoaS4ImkJg2l0GXJ-dUUfRU,4090
34
34
  praisonai/train.py,sha256=DvORlrwKOD-2v4r_z84eV3LsfzpNs-WnPKb5cQB3_t4,11071
35
35
  praisonai/ui/README.md,sha256=QG9yucvBieVjCjWFzu6hL9xNtYllkoqyJ_q1b0YYAco,1124
36
- praisonai/ui/chat.py,sha256=Phq7ODsaKKvzFtHszHVrwiuFmskKF8GIS56AZA1TXR0,20528
36
+ praisonai/ui/chat.py,sha256=UXFoy8pcPE_4N8b6wRJWSBpr2zoh62rjXVptaNfrKgc,21090
37
37
  praisonai/ui/code.py,sha256=YP100uHF6BpMyzVh_lgv32GUFLkMu88LXyoSIzv06Wg,18799
38
38
  praisonai/ui/context.py,sha256=oWO2I_WBZb7kZnuXItf18EJX0ZQv-1nAd8rxhwhuuDU,11871
39
39
  praisonai/ui/public/fantasy.svg,sha256=4Gs3kIOux-pjGtw6ogI_rv5_viVJxnE5gRwGilsSg0o,1553
@@ -48,8 +48,8 @@ praisonai/ui/realtimeclient/realtimedocs.txt,sha256=hmgd8Uwy2SkjSndyyF_-ZOaNxiyH
48
48
  praisonai/ui/realtimeclient/tools.py,sha256=IJOYwVOBW5Ocn5_iV9pFkmSKR3WU3YpX3kwF0I3jikQ,7855
49
49
  praisonai/ui/sql_alchemy.py,sha256=JWdQ4K_WjEtdDSff_7_W6nZjLX4pgwfno11U4y_1aXY,29528
50
50
  praisonai/version.py,sha256=ugyuFliEqtAwQmH4sTlc16YXKYbFWDmfyk87fErB8-8,21
51
- praisonai-1.0.5.dist-info/LICENSE,sha256=kqvFysVlnFxYOu0HxCe2HlmZmJtdmNGOxWRRkT9TsWc,1035
52
- praisonai-1.0.5.dist-info/METADATA,sha256=8duSaZ5_55QEk_duD8qtrOFDcPd7EhlGdmsVa47b_fY,17085
53
- praisonai-1.0.5.dist-info/WHEEL,sha256=Ie8mbC-etDUh6aDhzdvvvp_A-4mQQX7whlOFBnSJhcE,110
54
- praisonai-1.0.5.dist-info/entry_points.txt,sha256=I_xc6a6MNTTfLxYmAxe0rgey0G-_hbY07oFW-ZDnkw4,135
55
- praisonai-1.0.5.dist-info/RECORD,,
51
+ praisonai-1.0.6.dist-info/LICENSE,sha256=kqvFysVlnFxYOu0HxCe2HlmZmJtdmNGOxWRRkT9TsWc,1035
52
+ praisonai-1.0.6.dist-info/METADATA,sha256=QmbVYjqcLrWHhFd_6F7E2WHgZ9j-pNm8TfFq_ykgFW4,17085
53
+ praisonai-1.0.6.dist-info/WHEEL,sha256=Ie8mbC-etDUh6aDhzdvvvp_A-4mQQX7whlOFBnSJhcE,110
54
+ praisonai-1.0.6.dist-info/entry_points.txt,sha256=I_xc6a6MNTTfLxYmAxe0rgey0G-_hbY07oFW-ZDnkw4,135
55
+ praisonai-1.0.6.dist-info/RECORD,,