diff --git a/README.md b/README.md index 857711fc..f3f648a8 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ api_key = os.getenv("OPENAI_API_KEY") # Create an instance of the OpenAIChat class model = OpenAIChat( - api_key=api_key, model_name="gpt-4o-mini", temperature=0.1 + openai_api_key=api_key, model_name="gpt-4o-mini", temperature=0.1 ) # Initialize the agent @@ -198,7 +198,7 @@ memory = ChromaDB( # Model model = OpenAIChat( - api_key=os.getenv("OPENAI_API_KEY"), + openai_api_key=os.getenv("OPENAI_API_KEY"), model_name="gpt-4o-mini", temperature=0.1, )