Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/bot/dialogue_manager/models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from typing import Optional, Dict, List, Any, Text
from datetime import datetime, UTC
from datetime import datetime, timezone
from copy import deepcopy
from dataclasses import dataclass
from app.admin.intents.schemas import Intent
Expand Down Expand Up @@ -104,7 +104,7 @@ def __init__(
self.current_node = current_node
self.parameters = parameters or []
self.owner = owner
self.date = date or datetime.now(UTC).isoformat()
self.date = date or datetime.now(timezone.utc).isoformat()

@classmethod
def from_json(cls, request_json: Dict):
Expand Down
6 changes: 3 additions & 3 deletions app/bot/memory/models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from typing import Optional, Dict, List, Any, Text
from datetime import datetime, UTC
from datetime import datetime, timezone
from app.bot.dialogue_manager.models import UserMessage


Expand Down Expand Up @@ -29,7 +29,7 @@ def __init__(
self.missing_parameters = missing_parameters or []
self.complete = complete
self.current_node = current_node
self.date = date or datetime.now(UTC)
self.date = date or datetime.now(timezone.utc)

def to_dict(self) -> Dict:
return {
Expand Down Expand Up @@ -63,7 +63,7 @@ def from_dict(cls, state_dict: Dict) -> "State":

def update(self, user_message: UserMessage):
self.user_message = user_message
self.date = datetime.now(UTC)
self.date = datetime.now(timezone.utc)
self.context.update(user_message.context)

if self.complete:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version: '2'
name: ai-chatbot-framework
# name: ai-chatbot-framework
services:
frontend:
image: alfredfrancis/ai-chatbot-framework_frontend:latest
Expand Down
2 changes: 1 addition & 1 deletion manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import logging
import spacy
from pymongo.errors import DuplicateKeyError
from app.main import app

Check failure on line 7 in manage.py

View workflow job for this annotation

GitHub Actions / test-python

Ruff (F401)

manage.py:7:22: F401 `app.main.app` imported but unused

cli = typer.Typer()

Expand Down Expand Up @@ -51,7 +51,7 @@
from app.bot.nlu.pipeline_utils import train_pipeline

logger.info("Training models...")
await train_pipeline(app)
await train_pipeline()
logger.info("Training models finished.")

asyncio.run(async_train())
Expand Down
1 change: 1 addition & 0 deletions profile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ mdurl==0.1.2
motor==3.6.1
multidict==6.1.0
murmurhash==1.0.12
numpy==2.2.2
numpy~=1.26.0
openai==1.60.2
orjson==3.10.15
packaging==24.2
Expand Down
Loading