Skip to content

Commit ac705b0

Browse files
committed
Final AI Agent Implementation
1 parent cb82a69 commit ac705b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontend/src/app/dashboard/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,11 @@ export default function DashboardPage() {
4747
];
4848

4949
const userID = user || 'u_123';
50+
const sessionId = localStorage.getItem('sessionId') || 's_' + Math.random().toString(36).substr(2, 9);
5051

5152

5253
const makeSession = async () => {
53-
const session = await fetch('http://localhost:8000/apps/EduAssistant_Agents/users/' + userID + '/sessions/s_123', {
54+
const session = await fetch('http://localhost:8000/apps/EduAssistant_Agents/users/' + userID + '/sessions/' + sessionId, {
5455
method: 'POST',
5556
headers: {
5657
'Content-Type': 'application/json',

0 commit comments

Comments
 (0)