mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 14:13:02 -04:00
slight design changes
This commit is contained in:
parent
9b64f7eac9
commit
b177fce0c8
2 changed files with 6 additions and 6 deletions
|
@ -33,7 +33,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- When answering a question, be concise and to the point.\n- Try to stay at around 500-1000 characters for most responses, unless more text is required to properly explain something.'
|
||||
let prompt = 'You are a friendly chat bot designed to help people.\n- You should always use gender neutral pronouns when possible.\n- When answering a question, be concise and to the point.\n- Try to keep responses below 1000 characters. This does not apply to subjects that require more exhaustive or in-depth explanation.'
|
||||
if(args.prompt !== "") prompt = args.prompt
|
||||
|
||||
// Get content if the user replies to anything
|
||||
|
@ -53,8 +53,11 @@ module.exports = {
|
|||
let temperature = "0.25"
|
||||
if(args.temperature !== 0.25) temperature = parseFloat(args.temperature)
|
||||
|
||||
let inputDisplay = args.text
|
||||
if(inputDisplay.length >= 50) inputDisplay = inputDisplay.substr(0,50) + '...'
|
||||
|
||||
try{
|
||||
await editOrReply(context, createEmbed("ai_bard", context, "Generating response..."))
|
||||
await editOrReply(context, createEmbed("ai_bard", context, inputDisplay))
|
||||
|
||||
let res = await superagent.post(`${process.env.AI_SERVER}/google/palm2`)
|
||||
.set({
|
||||
|
@ -67,9 +70,6 @@ module.exports = {
|
|||
model
|
||||
})
|
||||
|
||||
let inputDisplay = args.text
|
||||
if(inputDisplay.length >= 50) inputDisplay = inputDisplay.substr(0,50) + '...'
|
||||
|
||||
let description = []
|
||||
let files = [];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue