mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-23 15:06:50 +08:00
### What problem does this PR solve? Fix: After deleting all conversation lists, the chat input box can still be used for input. #4907 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
14 lines
305 B
TypeScript
14 lines
305 B
TypeScript
export const getLLMIconName = (fid: string, llm_name: string) => {
|
|
if (fid === 'FastEmbed') {
|
|
return llm_name.split('/').at(0) ?? '';
|
|
}
|
|
|
|
return fid;
|
|
};
|
|
|
|
export const getLlmNameAndFIdByLlmId = (llmId?: string) => {
|
|
const [llmName, fId] = llmId?.split('@') || [];
|
|
|
|
return { fId, llmName };
|
|
};
|