|
@@ -1,6 +1,5 @@
|
|
|
import asyncio
|
|
|
import logging
|
|
|
-import threading
|
|
|
|
|
|
import openai
|
|
|
from fastapi import FastAPI, Request
|
|
@@ -46,10 +45,10 @@ def check_db_connect():
|
|
|
database.close()
|
|
|
database.connect()
|
|
|
logging.info("reconnect database")
|
|
|
- threading.Timer(60 * 60, check_db_connect).start()
|
|
|
+ # threading.Timer(60 * 60, check_db_connect).start()
|
|
|
|
|
|
|
|
|
-check_db_connect()
|
|
|
+# check_db_connect()
|
|
|
|
|
|
|
|
|
class Question(BaseModel):
|