Setting up the environment-Module 1

I have a question regarding setting up the environment

In Module 1, the tutor tells us we have to create an account on OPEN AI and generate an API key on openai platform and save it in a .env file.

Can you provide further details about whether there exists a free tier and how to control/monitor costs associated with making calls to the API

Do we have to create several .env files for the various projects in this course ?

Also in Module 1 , the tutor uses Github Copilot in vscode to get code suggestion. Re .env files and the use of Copilot, is there something we should be aware of , in terms of making sure the Copilot doesn’t activate on this type of files ?

Re Snowflake: what happens once we have exhausted the free credits ? Are they sufficient to do the course ?

@chris.favila @lucas.coutinho

The question is mostly about the openai API key.

Hi @user440

It seems OpenAI does not have free tier for their API usage (here’s a relevant thread in the OpenAI forum: OpenAI API keys in free account - API - OpenAI Developer Community ).

As for controlling/monitoring costs, you can look into rate limits which allows you to limit how much API usage your app uses. More info at https://platform.openai.com/docs/guides/rate-limits

The trial provides $400 of credit, so I think it’s sufficient for the challenge and there’s still plenty more to use in exploring other Snowflake features.

As for making sure that GitHub doesn’t see those secrets, you can put those in .gitignore

There are also ample resources on the internet on IDE-specific ways to hiding credentials.

Best regards,
Chanin