MervinPraison / PraisonAI

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, customisation, and efficient human-agent collaboration.
https://docs.praison.ai
MIT License
1.05k stars 159 forks source link

Bug: TypeError: str expected, not NoneType #54

Closed MervinPraison closed 2 weeks ago

MervinPraison commented 2 weeks ago

RuntimeError: StaticFiles directory 'public' does not exist. 2024-06-19 22:43:33,142 - 8622177088 - utils.py-utils:50 - ERROR: str expected, not NoneType Traceback (most recent call last): File "/Users/praison/.pyenv/versions/3.11.0/lib/python3.11/site-packages/chainlit/utils.py", line 44, in wrapper return await user_function(**params_values) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/praison/.pyenv/versions/3.11.0/lib/python3.11/site-packages/praisonai/chainlit_ui.py", line 143, in start_chat await on_settings_update(settings) File "/Users/praison/.pyenv/versions/3.11.0/lib/python3.11/site-packages/praisonai/chainlit_ui.py", line 152, in on_settings_update os.environ["OPENAI_API_KEY"] = config_list[0]['api_key']


  File "<frozen os>", line 683, in __setitem__
  File "<frozen os>", line 757, in encode
TypeError: str expected, not NoneType
MervinPraison commented 2 weeks ago

Fixed this issue in this release https://github.com/MervinPraison/PraisonAI/releases/tag/v0.0.33