mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Support vLLM #4316 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import { LLMFactory } from '@/constants/llm';
|
||||
import { IFactory } from '@/interfaces/database/llm';
|
||||
import isObject from 'lodash/isObject';
|
||||
import snakeCase from 'lodash/snakeCase';
|
||||
@ -36,12 +37,12 @@ export const formatNumberWithThousandsSeparator = (numberStr: string) => {
|
||||
};
|
||||
|
||||
const orderFactoryList = [
|
||||
'OpenAI',
|
||||
'Moonshot',
|
||||
"PPIO",
|
||||
'ZHIPU-AI',
|
||||
'Ollama',
|
||||
'Xinference',
|
||||
LLMFactory.OpenAI,
|
||||
LLMFactory.Moonshot,
|
||||
LLMFactory.PPIO,
|
||||
LLMFactory.ZhipuAI,
|
||||
LLMFactory.Ollama,
|
||||
LLMFactory.Xinference,
|
||||
];
|
||||
|
||||
export const sortLLmFactoryListBySpecifiedOrder = (list: IFactory[]) => {
|
||||
|
||||
Reference in New Issue
Block a user