Update server.js
Browse files
server.js
CHANGED
|
@@ -12,7 +12,7 @@ app.use(bodyParser.json());
|
|
| 12 |
|
| 13 |
// API endpoint for chatting
|
| 14 |
app.get('/chat', async (req, res) => {
|
| 15 |
-
const token = req.query.token ||
|
| 16 |
const characterId = req.query.characterId || 'smtV3Vyez6ODkwS8BErmBAdgGNj-1XWU73wIFVOY1hQ';
|
| 17 |
const chatId = req.query.chatId;
|
| 18 |
const voiceId = req.query.voiceId || 'f4b33b1d-2e5a-40a8-8a07-958140cd104d';
|
|
|
|
| 12 |
|
| 13 |
// API endpoint for chatting
|
| 14 |
app.get('/chat', async (req, res) => {
|
| 15 |
+
const token = req.query.token || process.env.token
|
| 16 |
const characterId = req.query.characterId || 'smtV3Vyez6ODkwS8BErmBAdgGNj-1XWU73wIFVOY1hQ';
|
| 17 |
const chatId = req.query.chatId;
|
| 18 |
const voiceId = req.query.voiceId || 'f4b33b1d-2e5a-40a8-8a07-958140cd104d';
|