-
Notifications
You must be signed in to change notification settings - Fork 382
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 #673 from openchatai/pass-query-params
pass query params
- Loading branch information
Showing
8 changed files
with
77 additions
and
86 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 |
---|---|---|
|
@@ -63,9 +63,9 @@ <h2> | |
<div id="opencopilot-root"></div> | ||
|
||
<script> | ||
const token = "NtITS4Z07ZrdctTN"; | ||
const apiUrl = "http://localhost:8888/backend"; | ||
const socketUrl = "http://localhost:8888"; | ||
const token = "D3BCYwikexJ0hF1Z"; | ||
const apiUrl = "https://api.opencopilot.so/backend"; | ||
const socketUrl = "https://api.opencopilot.so"; | ||
const sharedConfig = { | ||
initialMessage: "Welcome back! How can I help you today?", // optional | ||
token: token, // required | ||
|
@@ -78,13 +78,17 @@ <h2> | |
// optional | ||
// Authorization: "Bearer BQAlIe479yo16aXf", | ||
}, | ||
queryParams: { | ||
// optional | ||
// passing extra query params to the backend along with every user message. | ||
}, | ||
bot: { | ||
name: "AI Bot", | ||
}, | ||
user: { | ||
// optional | ||
name: "John Doe", | ||
avatarUrl: "https://i.pravatar.cc/[email protected]" | ||
avatarUrl: "https://i.pravatar.cc/[email protected]", | ||
}, | ||
}; | ||
|
||
|
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 was deleted.
Oops, something went wrong.
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.