mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-20 21:06:54 +08:00
### What problem does this PR solve? Feat: Disable Max_token by default #5283 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
import { EmptyConversationId } from '@/constants/chat';
|
||||
import {
|
||||
ChatVariableEnabledField,
|
||||
EmptyConversationId,
|
||||
} from '@/constants/chat';
|
||||
import { Message } from '@/interfaces/database/chat';
|
||||
import { IMessage } from '@/pages/chat/interface';
|
||||
import { omit } from 'lodash';
|
||||
@ -57,3 +60,9 @@ export function replaceThinkToSection(text: string = '') {
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
export function setInitialChatVariableEnabledFieldValue(
|
||||
field: ChatVariableEnabledField,
|
||||
) {
|
||||
return field !== ChatVariableEnabledField.MaxTokensEnabled;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user