mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Filter the agent form's large model list by type #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
import { IThirdOAIModel } from '@/interfaces/database/llm';
|
||||
|
||||
export const getLLMIconName = (fid: string, llm_name: string) => {
|
||||
if (fid === 'FastEmbed') {
|
||||
return llm_name.split('/').at(0) ?? '';
|
||||
@ -16,3 +18,7 @@ export const getLlmNameAndFIdByLlmId = (llmId?: string) => {
|
||||
export function getRealModelName(llmName: string) {
|
||||
return llmName.split('__').at(0) ?? '';
|
||||
}
|
||||
|
||||
export function buildLlmUuid(llm: IThirdOAIModel) {
|
||||
return `${llm.llm_name}@${llm.fid}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user