Skip to content

Commit b75358c

Browse files
fix db authentication error
1 parent bcc676d commit b75358c

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

app/config.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
BATCH_SIZE = 50
1111

1212
MODEL_EMBEDDING = "mistral-embed"
13-
MODEL_GENERATION = "mistral-small-2506"
13+
MODEL_GENERATION = "mistral-medium-2508" # alternatively use: "mistral-small-2506"
1414

15-
DB_NAME = "embedding_db"
16-
DB_HOST = "localhost"
15+
DB_NAME = os.getenv("POSTGRES_DB")
16+
DB_HOST = "db"
1717
DB_PORT = 5432
18-
DB_USER = os.getenv("DB_USER")
19-
DB_PASSWORD = os.getenv("DB_PASSWORD")
18+
DB_USER = os.getenv("POSTGRES_USER")
19+
DB_PASSWORD = os.getenv("POSTGRES_PASSWORD")
2020

2121
API_KEY = os.getenv("API_KEY")

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Flask>=3.0
2-
mistralai>=1.12
2+
mistralai==1.2.0
33
psycopg2-binary>=2.9
44
python-dotenv>=1.0
55
Flask-Limiter>=3.5

0 commit comments

Comments
 (0)