mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-19 20:16:49 +08:00
### What problem does this PR solve? fix: Fixed an issue where the first message would be displayed when sending the second message #2625 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) - [ ] New Feature (non-breaking change which adds functionality) - [ ] Documentation Update - [ ] Refactoring - [ ] Performance Improvement - [ ] Other (please describe):
26 lines
530 B
TypeScript
26 lines
530 B
TypeScript
export enum MessageType {
|
|
Assistant = 'assistant',
|
|
User = 'user',
|
|
}
|
|
|
|
export const variableEnabledFieldMap = {
|
|
temperatureEnabled: 'temperature',
|
|
topPEnabled: 'top_p',
|
|
presencePenaltyEnabled: 'presence_penalty',
|
|
frequencyPenaltyEnabled: 'frequency_penalty',
|
|
maxTokensEnabled: 'max_tokens',
|
|
};
|
|
|
|
export enum SharedFrom {
|
|
Agent = 'agent',
|
|
Chat = 'chat',
|
|
}
|
|
|
|
export enum ChatSearchParams {
|
|
DialogId = 'dialogId',
|
|
ConversationId = 'conversationId',
|
|
isNew = 'isNew',
|
|
}
|
|
|
|
export const EmptyConversationId = 'empty';
|