mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-10 04:28:50 +01:00
tests scrolling to top, show/hide templates
This commit is contained in:
parent
5af5a97d8f
commit
7dd4e78bbf
11 changed files with 101 additions and 29 deletions
|
|
@ -69,12 +69,17 @@ app.post('/update_convo', async (req, res) => {
|
|||
});
|
||||
|
||||
app.post('/ask', async (req, res) => {
|
||||
console.log(req.body);
|
||||
const { text, parentMessageId, conversationId } = req.body;
|
||||
if (!text.trim().includes(' ') && text.length < 5) {
|
||||
res.status(500).write('Prompt empty or too short');
|
||||
res.end();
|
||||
return;
|
||||
}
|
||||
|
||||
const userMessageId = crypto.randomUUID();
|
||||
let userMessage = { id: userMessageId, sender: 'User', text };
|
||||
|
||||
console.log(userMessage, req.body);
|
||||
console.log('initial ask log', userMessage);
|
||||
|
||||
res.writeHead(200, {
|
||||
Connection: 'keep-alive',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue