leonid20000 / odin-slides

This is an advanced Python tool that empowers you to effortlessly draft customizable PowerPoint slides using the Generative Pre-trained Transformer (GPT) of your choice. Leveraging the capabilities of Large Language Models (LLM), odin-slides enables you to turn the lengthiest Word documents into well organized presentations.
MIT License
113 stars 14 forks source link

how to set the openai api key ? #5

Closed djuillard closed 7 months ago

djuillard commented 7 months ago

Hello, I created a .env file at the root folder and added ny ODIN_SLIDES_LLM_API_KEY but I still have an error saying that the API Key is not found. Because I run that program on windows, I also tried to set it up as an environment varibale directly into the windows system, but it's not working neither.

How should I proceed ?

Thanks in advance,

Damien

leonid20000 commented 7 months ago

If you are on windows try setting the env var in a way that works best for your intended use and the shell that you are using. for example in a Powershell session that would be: $env:ODIN_SLIDES_LLM_API_KEY = blahblah

djuillard commented 7 months ago

Excellent. It works really fine, awesome projet. Congratulations for your work !!