Skip to content
This repository has been archived by the owner on Feb 5, 2025. It is now read-only.

Commit

Permalink
fix: stop double-encoding sessionID (DX-2359) (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
effervescentia authored Sep 13, 2024
1 parent a816a16 commit a00d7b5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const useRuntimeAPI = ({

const interact = async (action: RuntimeAction) =>
runtime.interact(createContext(), {
sessionID: encodeURIComponent(userID),
sessionID: userID,
action,
...(versionID && { versionID }),
});
Expand All @@ -58,7 +58,7 @@ export const useRuntimeAPI = ({
});

await runtime.feedback({
sessionID: encodeURIComponent(userID),
sessionID: userID,
name,
text: aiMessages,
lastUserTurn: userTurn,
Expand All @@ -73,7 +73,7 @@ export const useRuntimeAPI = ({
platform: { type: device },
} = Bowser.parse(window.navigator.userAgent);

await runtime.createTranscript(encodeURIComponent(userID), {
await runtime.createTranscript(userID, {
...(os && { os }),
...(browser && { browser }),
...(device && { device }),
Expand Down

0 comments on commit a00d7b5

Please sign in to comment.