RajMl commited on
Commit
57959f9
1 Parent(s): f109156

Update aux_functions/chat_sql_function.py

Browse files
Files changed (1) hide show
  1. aux_functions/chat_sql_function.py +1 -1
aux_functions/chat_sql_function.py CHANGED
@@ -23,7 +23,7 @@ def initiate_chat(querry):
23
 
24
  # Initialize the SQLDatabase object
25
  db = SQLDatabase.from_uri(db_uri)
26
- api_key = os.get("open_api")
27
 
28
  # Initialize the ChatOpenAI object with the desired model
29
  llm = ChatOpenAI(model="gpt-3.5-turbo", temperature=0, api_key=api_key)
 
23
 
24
  # Initialize the SQLDatabase object
25
  db = SQLDatabase.from_uri(db_uri)
26
+ api_key = os.getenv("open_api")
27
 
28
  # Initialize the ChatOpenAI object with the desired model
29
  llm = ChatOpenAI(model="gpt-3.5-turbo", temperature=0, api_key=api_key)