jan/web/app/_models/Bot.ts
NamH 6e2210cb22
feat: adding create bot functionality (#368)
* feat: adding create bot functionality

Signed-off-by: James <james@jan.ai>

* update the temperature progress bar

Signed-off-by: James <james@jan.ai>

* chore: remove tgz

Signed-off-by: James <james@jan.ai>

* update core dependency

Signed-off-by: James <james@jan.ai>

* fix e2e test

Signed-off-by: James <james@jan.ai>

---------

Signed-off-by: James <james@jan.ai>
Co-authored-by: James <james@jan.ai>
2023-10-23 15:57:56 +07:00

33 lines
615 B
TypeScript

export type Bot = {
_id: string;
name: string;
description: string;
visibleFromBotProfile: boolean;
systemPrompt: string;
welcomeMessage: string;
publiclyAccessible: boolean;
suggestReplies: boolean;
renderMarkdownContent: boolean;
/**
* If true, the bot will use the custom temperature value instead of the
* default temperature value.
*/
enableCustomTemperature: boolean;
/**
* Default is 0.7.
*/
customTemperature: number;
maxTokens: number;
frequencyPenalty: number;
presencePenalty: number;
modelId: string;
createdAt?: number;
updatedAt?: number;
};