-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathappSetting.ts
More file actions
29 lines (24 loc) · 880 Bytes
/
appSetting.ts
File metadata and controls
29 lines (24 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
export const SettingsKeys = {
ChatbotPrompt: 'chatbot-prompt',
} as const;
export type ChatCompletionMessageRoles = 'system' | 'user' | 'assistant';
// Chatbot Prompt Setting keys
export const ChatbotPromptSettingsKeys = {
InitialPrompt: 'initialPrompt',
ChatbotCue: 'chatbotCue',
ChatbotName: 'chatbotName',
StarterSuggestions: 'starterSuggestions',
} as const;
export type ChatbotPromptSettings = {
[ChatbotPromptSettingsKeys.InitialPrompt]: string;
[ChatbotPromptSettingsKeys.ChatbotCue]: string;
[ChatbotPromptSettingsKeys.ChatbotName]: string;
[ChatbotPromptSettingsKeys.StarterSuggestions]: string[];
// used to allow access using settings[settingKey] syntax
// [key: string]: unknown;
};
export const DEFAULT_GENERAL_SETTINGS = {
MaxCommentLength: 300,
MaxThreadLength: 50,
};
export const CHATBOT_AVATAR_APP_SETTING_NAME = 'chatbot-avatar';