From deca10b853aa46b31819c4cfc1d3bd3551e52045 Mon Sep 17 00:00:00 2001 From: pliny <133052465+elder-plinius@users.noreply.github.com> Date: Fri, 3 Nov 2023 19:09:38 -0700 Subject: [PATCH] Update README.md --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 89de715..2bd83df 100644 --- a/README.md +++ b/README.md @@ -18,20 +18,20 @@ git clone https://github.com/your-username/AutoTemp.git cd AutoTemp pip install -r requirements.txt +## Configuration + +Before running AutoTemp, you need to set up your API key in an .env file at the root of the project: + +OPENAI_API_KEY='your-api-key-here' + +This file should not be committed to your version control system as it contains sensitive information. + ## Usage -To use AutoTemp, initialize the AutoTempAgent class with your API key and preferred settings. Here's a basic example: +To use AutoTemp, simply run the `autotemp.py` script with Python and follow the prompts: -python +python autotemp.py -from autotemp import AutoTempAgent - -api_key = "your-api-key-here" # Replace with your actual OpenAI API key -agent = AutoTempAgent(api_key=api_key, auto_select=True) - -prompt = "Write a creative short story about a purple dragon" -final_output = agent.run(prompt) -print(final_output) ## Configuration