This repository has been archived by the owner on Jan 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 401
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #475 from openchatai/fix/streaming-url
Update Copilot widget HTML and Controller context
- Loading branch information
Showing
7 changed files
with
49 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,44 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Openchat AI-Copilot</title> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1,maximum-scale=1" | ||
/> | ||
</head> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Openchat AI-Copilot</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1" /> | ||
</head> | ||
|
||
<body> | ||
<button id="triggerSelector">toggle the chat widget</button> | ||
<script type="module" src="/src/main.tsx"></script> | ||
<script> | ||
window.onload = () => { | ||
initAiCoPilot({ | ||
initialMessage: "Hi Sir", | ||
token: "5AciN2ZUgIxh43BH", | ||
triggerSelector: "#triggerSelector", | ||
apiUrl: "http://localhost:8888/backend", | ||
defaultOpen: true, | ||
headers: | ||
{ | ||
Authorization: "Bearer BQAlIe479yo16aXf", | ||
}, | ||
user: { | ||
name: "John Doe", | ||
}, | ||
containerProps: { | ||
style: { | ||
position: "fixed", | ||
height: "100%", | ||
bottom: "0", | ||
right: "0", | ||
width: "400px", | ||
<body> | ||
<button id="triggerSelector">toggle the chat widget</button> | ||
<script type="module" src="/src/main.tsx"></script> | ||
<script> | ||
window.onload = () => { | ||
initAiCoPilot({ | ||
initialMessage: "Hi Sir", | ||
token: "5AciN2ZUgIxh43BH", | ||
triggerSelector: "#triggerSelector", | ||
apiUrl: "http://localhost:8888/backend", | ||
socketUrl: "http://localhost:8888", | ||
defaultOpen: true, | ||
headers: { | ||
Authorization: "Bearer BQAlIe479yo16aXf", | ||
}, | ||
}, | ||
}); | ||
}; | ||
</script> | ||
</body> | ||
|
||
</html> | ||
user: { | ||
name: "John Doe", | ||
}, | ||
containerProps: { | ||
style: { | ||
position: "fixed", | ||
height: "100%", | ||
bottom: "0", | ||
right: "0", | ||
width: "400px", | ||
}, | ||
}, | ||
}); | ||
}; | ||
</script> | ||
</body> | ||
</html> |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.