mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
* feat: add temporary conversation * feat: add avatar to MessageItem * feat: render message reference
17 lines
586 B
TypeScript
17 lines
586 B
TypeScript
import { EmptyConversationId, variableEnabledFieldMap } from './constants';
|
|
|
|
export const excludeUnEnabledVariables = (values: any) => {
|
|
const unEnabledFields: Array<keyof typeof variableEnabledFieldMap> =
|
|
Object.keys(variableEnabledFieldMap).filter((key) => !values[key]) as Array<
|
|
keyof typeof variableEnabledFieldMap
|
|
>;
|
|
|
|
return unEnabledFields.map(
|
|
(key) => `llm_setting.${variableEnabledFieldMap[key]}`,
|
|
);
|
|
};
|
|
|
|
export const isConversationIdNotExist = (conversationId: string) => {
|
|
return conversationId !== EmptyConversationId && conversationId !== '';
|
|
};
|