mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 22:23:03 -04:00
- update ai commands to 4000 chars
- update chat design to follow bard
This commit is contained in:
parent
8fd752b9b0
commit
3ab416a420
2 changed files with 20 additions and 18 deletions
|
@ -32,7 +32,7 @@ module.exports = {
|
|||
|
||||
let input = args.text;
|
||||
|
||||
let prompt = 'You are a friendly chat bot designed to help people.\n- You should always use gender neutral pronouns when possible.\n- Try to keep your responses under 2000 characters. This isn\'t required for more detailed answers.'
|
||||
let prompt = 'You are a friendly chat bot designed to help people.\n- You should always use gender neutral pronouns when possible.\n- Try to keep your responses within 2000-4000 characters. This isn\'t required for more detailed answers.'
|
||||
if(args.prompt !== "") prompt = args.prompt
|
||||
|
||||
if(context.message.messageReference) {
|
||||
|
@ -72,7 +72,7 @@ module.exports = {
|
|||
|
||||
if(!res.body.output) res.body.output = '[Empty Response]'
|
||||
|
||||
if(res.body.output.length <= 2000) description.push(res.body.output)
|
||||
if(res.body.output.length <= 4000) description.push(res.body.output)
|
||||
else {
|
||||
files.push({
|
||||
filename: `chat.${Date.now().toString(36)}.txt`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue