-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jicheng Lu
committed
Nov 7, 2024
1 parent
64e2cc4
commit 2acdd7e
Showing
7 changed files
with
36 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
import { getToken, setToken } from '$lib/services/auth-service.js' | ||
import { getUserStore } from '$lib/helpers/store.js'; | ||
import { conversationStore } from '$lib/helpers/store.js'; | ||
import { LERNER_ID, TRAINING_MODE } from '$lib/helpers/constants'; | ||
import { LEARNER_ID, TRAINING_MODE } from '$lib/helpers/constants'; | ||
const params = $page.params; | ||
|
@@ -29,7 +29,7 @@ | |
} else { | ||
await getToken("[email protected]", "123456", () => { | ||
console.log("login as guest."); | ||
}); | ||
}, () => {}); | ||
} | ||
conversation = conversationStore.get(); | ||
|
@@ -43,7 +43,7 @@ | |
const chatUrl = new URL(`chat/${agentId}/${conversationId}`, window.location.origin); | ||
const searchParams = new URLSearchParams(); | ||
if (agentId === LERNER_ID) { | ||
if (agentId === LEARNER_ID) { | ||
searchParams.append('mode', TRAINING_MODE); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters