We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb82a69 commit ac705b0Copy full SHA for ac705b0
frontend/src/app/dashboard/page.tsx
@@ -47,10 +47,11 @@ export default function DashboardPage() {
47
];
48
49
const userID = user || 'u_123';
50
+ const sessionId = localStorage.getItem('sessionId') || 's_' + Math.random().toString(36).substr(2, 9);
51
52
53
const makeSession = async () => {
- 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, {
55
method: 'POST',
56
headers: {
57
'Content-Type': 'application/json',
0 commit comments