Spaces:
Sleeping
Sleeping
Update aux_functions/chat_sql_function.py
Browse files
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.
|
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)
|