MervinPraison/PraisonAI

Why Hardcoded openAI key... complain

HyperUpscale opened this issue · 2 comments

I use no virtual environment... so it is the default python environment.
I install praisonai and run it... regardless which parameter I use - ollama, UI, init, etc... it always asks for openAI API key.

I changed the url and the model in auto.py, cli.py the url_base .. but stil... I tried to set OPENAI_API_KEY=fake . Still doesnt work...

Cant find where is this hardcoded COMPULSORY requirement about this key so I have to use OpenAI

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

I dont understand the requirement of a key from my side... There are so many solutions how to see if I want to use OpenAI... but that...
Can you make it simple for me and to ask nicely if I want to use openAI or not in the beginning...

I will find another solution