mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Hide the suffix of the large model name. #5433 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -11,3 +11,8 @@ export const getLlmNameAndFIdByLlmId = (llmId?: string) => {
|
||||
|
||||
return { fId, llmName };
|
||||
};
|
||||
|
||||
// The names of the large models returned by the interface are similar to "deepseek-r1___OpenAI-API"
|
||||
export function getRealModelName(llmName: string) {
|
||||
return llmName.split('__').at(0) ?? '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user