(20250118) Ready to test Mail Sync (Cron) on the server.

This commit is contained in:
2025-01-18 13:14:42 +05:30
parent 766b196a80
commit 258b2fdbaf
8 changed files with 80 additions and 44 deletions
+2 -2
View File
@@ -128,7 +128,7 @@ class CoreLLMController(BaseModel):
async def invoke(
self,
mongo_conn: AsyncMongo,
mongo_data_conn: AsyncMongo,
user_info: CoreUserInfoModel,
llm_input: LLMInput
) -> LLMOutput:
@@ -158,7 +158,7 @@ class CoreLLMController(BaseModel):
# Store this into MongoDB:
mongo_document = {"user": user_info.model_dump()}
for k, v in llm_response.model_dump().items(): mongo_document[k] = v
inserted_id = await mongo_conn.insert_one(
inserted_id = await mongo_data_conn.insert_one(
collection = self.AI_USAGE_COLLECTION,
document = mongo_document
)