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

PraisonAI is not running with ollama model mistral or llama3 on windows 11 #38

Open ziayounasch opened 1 month ago

ziayounasch commented 1 month ago

when I run the praisonai --init command I get the following error even I have set the environment variables:

Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "C:\Users\Ziach\anaconda3\envs\praisonaiagents\Scripts\praisonai.exe\__main__.py", line 7, in <module> File "C:\Users\Ziach\anaconda3\envs\praisonaiagents\Lib\site-packages\praisonai\__main__.py", line 7, in main praison_ai.main() File "C:\Users\Ziach\anaconda3\envs\praisonaiagents\Lib\site-packages\praisonai\cli.py", line 68, in main generator = AutoGenerator(topic=self.topic , framework=self.framework, agent_file=self.agent_file) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Ziach\anaconda3\envs\praisonaiagents\Lib\site-packages\praisonai\auto.py", line 37, in __init__ OpenAI( File "C:\Users\Ziach\anaconda3\envs\praisonaiagents\Lib\site-packages\openai\_client.py", line 104, in __init__ raise OpenAIError( openai.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable

HyperUpscale commented 1 month ago

You dont seem to have provided OPEN API key... The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable. follow this video - it explains all the steps: https://www.youtube.com/watch?v=wJzeg6IUzJY&t=360s&ab_channel=FahdMirza