mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### 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)
41 lines
1.0 KiB
TypeScript
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',
|
|
}
|