mirror of
https://github.com/sqlchat/sqlchat.git
synced 2025-09-26 01:23:18 +08:00
14 lines
472 B
TypeScript
14 lines
472 B
TypeScript
// It's a template for creating new bots.
|
|
export default {
|
|
id: "the-id-of-your-bot",
|
|
name: "The name of your bot",
|
|
description: "The description of your bot",
|
|
avatar: "The avatar link of your bot",
|
|
// The function to get the prompt of the bot.
|
|
getPrompt: (input: string): string => {
|
|
// You can do some preprocessing here.
|
|
const formatedInput = input.trim().toLowerCase();
|
|
return `The prompt of your bot. The question is ${formatedInput}`;
|
|
},
|
|
};
|