Files
ragflow/web/src/constants/chat.ts
balibabu a41a646909 Fix: Fixed the issue where clicking the SQL tool test button did not request the interface #9541 (#9542)
### What problem does this PR solve?

Fix: Fixed the issue where clicking the SQL tool test button did not
request the interface #9541
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2025-08-19 16:41:32 +08:00

41 lines
1.0 KiB
TypeScript

export enum MessageType {
Assistant = 'assistant',
User = 'user',
}
export enum ChatVariableEnabledField {
TemperatureEnabled = 'temperatureEnabled',
TopPEnabled = 'topPEnabled',
PresencePenaltyEnabled = 'presencePenaltyEnabled',
FrequencyPenaltyEnabled = 'frequencyPenaltyEnabled',
MaxTokensEnabled = 'maxTokensEnabled',
}
export const variableEnabledFieldMap = {
[ChatVariableEnabledField.TemperatureEnabled]: 'temperature',
[ChatVariableEnabledField.TopPEnabled]: 'top_p',
[ChatVariableEnabledField.PresencePenaltyEnabled]: 'presence_penalty',
[ChatVariableEnabledField.FrequencyPenaltyEnabled]: 'frequency_penalty',
[ChatVariableEnabledField.MaxTokensEnabled]: 'max_tokens',
};
export enum SharedFrom {
Agent = 'agent',
Chat = 'chat',
Search = 'search',
}
export enum ChatSearchParams {
DialogId = 'dialogId',
ConversationId = 'conversationId',
isNew = 'isNew',
}
export const EmptyConversationId = 'empty';
export enum DatasetMetadata {
Disabled = 'disabled',
Automatic = 'automatic',
Manual = 'manual',
}