mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-17 22:14:28 +01:00
Merge master to fixes_gpt3
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
import os
|
||||
import time
|
||||
import openai
|
||||
import keys
|
||||
from dotenv import load_dotenv
|
||||
|
||||
# Load environment variables from .env file
|
||||
load_dotenv()
|
||||
|
||||
# Initialize the OpenAI API client
|
||||
openai.api_key = keys.OPENAI_API_KEY
|
||||
openai.api_key = os.getenv("OPENAI_API_KEY")
|
||||
|
||||
|
||||
def create_chat_message(role, content):
|
||||
|
||||
Reference in New Issue
Block a user