2024-02-22 17:14:25 +08:00
|
|
|
export enum MessageType {
|
|
|
|
|
Assistant = 'assistant',
|
|
|
|
|
User = 'user',
|
|
|
|
|
}
|
2024-06-06 11:01:14 +08:00
|
|
|
|
|
|
|
|
export const variableEnabledFieldMap = {
|
|
|
|
|
temperatureEnabled: 'temperature',
|
|
|
|
|
topPEnabled: 'top_p',
|
|
|
|
|
presencePenaltyEnabled: 'presence_penalty',
|
|
|
|
|
frequencyPenaltyEnabled: 'frequency_penalty',
|
|
|
|
|
maxTokensEnabled: 'max_tokens',
|
|
|
|
|
};
|
2024-08-16 18:50:48 +08:00
|
|
|
|
|
|
|
|
export enum SharedFrom {
|
|
|
|
|
Agent = 'agent',
|
|
|
|
|
Chat = 'chat',
|
|
|
|
|
}
|
2024-08-27 14:45:17 +08:00
|
|
|
|
|
|
|
|
export enum ChatSearchParams {
|
|
|
|
|
DialogId = 'dialogId',
|
|
|
|
|
ConversationId = 'conversationId',
|
2024-09-27 18:20:19 +08:00
|
|
|
isNew = 'isNew',
|
2025-02-06 23:34:26 +08:00
|
|
|
CurrentPage = 'currentPage',
|
|
|
|
|
PageSize = 'pageSize',
|
2024-08-27 14:45:17 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const EmptyConversationId = 'empty';
|