Remove OpenAI client initialization from BaseConfig in config.py
Browse files- cbh/core/config.py +0 -2
cbh/core/config.py
CHANGED
|
@@ -4,14 +4,12 @@ from functools import lru_cache
|
|
| 4 |
|
| 5 |
import motor.motor_asyncio
|
| 6 |
from dotenv import load_dotenv
|
| 7 |
-
from openai import AsyncClient
|
| 8 |
|
| 9 |
load_dotenv()
|
| 10 |
|
| 11 |
|
| 12 |
class BaseConfig:
|
| 13 |
BASE_DIR: pathlib.Path = pathlib.Path(__file__).parent.parent.parent
|
| 14 |
-
OPENAI_CLIENT = AsyncClient(api_key=os.getenv('OPENAI_API_KEY'))
|
| 15 |
DB_CLIENT = motor.motor_asyncio.AsyncIOMotorClient(os.getenv('MONGO_DB_URL')).cbhtest
|
| 16 |
|
| 17 |
|
|
|
|
| 4 |
|
| 5 |
import motor.motor_asyncio
|
| 6 |
from dotenv import load_dotenv
|
|
|
|
| 7 |
|
| 8 |
load_dotenv()
|
| 9 |
|
| 10 |
|
| 11 |
class BaseConfig:
|
| 12 |
BASE_DIR: pathlib.Path = pathlib.Path(__file__).parent.parent.parent
|
|
|
|
| 13 |
DB_CLIENT = motor.motor_asyncio.AsyncIOMotorClient(os.getenv('MONGO_DB_URL')).cbhtest
|
| 14 |
|
| 15 |
|