Add OpenAI conversational model

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2023-03-29 01:27:43 +03:00
parent ccef6617bb
commit b3bfb60ef9
10 changed files with 244 additions and 123 deletions

View File

@@ -1,11 +1,11 @@
import pymongo
from os import environ
MONGO_HOST = environ.get("MONGO_HOST")
MONGO_PORT = environ.get("MONGO_PORT")
MONGO_USERNAME = environ.get("MONGO_USERNAME")
MONGO_PASSWORD = environ.get("MONGO_PASSWORD")
MONGO_DATABASE = environ.get("MONGO_DATABASE")
MONGO_HOST = environ.get("MONGO_HOST") or "db"
MONGO_PORT = environ.get("MONGO_PORT") or "27017"
MONGO_USERNAME = environ.get("MONGO_USERNAME") or "admina"
MONGO_PASSWORD = environ.get("MONGO_PASSWORD") or "admina"
MONGO_DATABASE = environ.get("MONGO_DATABASE") or "admina"
if not MONGO_HOST or not MONGO_PORT or not MONGO_USERNAME or not MONGO_PASSWORD or not MONGO_DATABASE:
raise ValueError(