Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Commit f45728a

Browse files
authored
Merge pull request #565 from openchatai/feat/debug_mode
adding dataclass
2 parents de80578 + e4b3862 commit f45728a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

llm-server/routes/chat/chat_controller.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def get_session_chats(session_id: str) -> Response:
6464
"id": chat.id,
6565
"message": chat.message,
6666
"session_id": chat.session_id,
67+
"debug_json": chat.debug_json,
6768
}
6869
)
6970

llm-server/shared/models/opencopilot_db/chat_history.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
from .database_setup import engine
66
from .get_declarative_base import Base
77
import json
8+
from dataclasses import dataclass
89

9-
10+
@dataclass
1011
class ChatHistory(Base):
1112
__tablename__ = "chat_history"
1213

0 commit comments

Comments
 (0)