mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-25 01:43:27 +08:00
### What problem does this PR solve? This PR aims to extend the list of possible providers. Adds new Provider "RAGcon" within the Ollama Modal. It provides all model types except OCR via Openai-compatible endpoints. ### Type of change - [x] New Feature (non-breaking change which adds functionality) --------- Co-authored-by: Jakob <16180662+hauberj@users.noreply.github.com>
50 lines
1.3 KiB
TypeScript
50 lines
1.3 KiB
TypeScript
import {
|
|
ApiIcon,
|
|
LogOutIcon,
|
|
ModelProviderIcon,
|
|
PasswordIcon,
|
|
ProfileIcon,
|
|
TeamIcon,
|
|
} from '@/assets/icon/next-icon';
|
|
import { IconFont } from '@/components/icon-font';
|
|
import { LLMFactory } from '@/constants/llm';
|
|
import { UserSettingRouteKey } from '@/constants/setting';
|
|
import { MonitorOutlined } from '@ant-design/icons';
|
|
|
|
export const UserSettingIconMap = {
|
|
[UserSettingRouteKey.Profile]: <ProfileIcon />,
|
|
[UserSettingRouteKey.Password]: <PasswordIcon />,
|
|
[UserSettingRouteKey.Model]: <ModelProviderIcon />,
|
|
[UserSettingRouteKey.System]: <MonitorOutlined style={{ fontSize: 24 }} />,
|
|
[UserSettingRouteKey.Team]: <TeamIcon />,
|
|
[UserSettingRouteKey.Logout]: <LogOutIcon />,
|
|
[UserSettingRouteKey.Api]: <ApiIcon />,
|
|
[UserSettingRouteKey.MCP]: (
|
|
<IconFont name="mcp" className="size-6"></IconFont>
|
|
),
|
|
};
|
|
|
|
export * from '@/constants/setting';
|
|
|
|
export const LocalLlmFactories = [
|
|
LLMFactory.Ollama,
|
|
LLMFactory.Xinference,
|
|
LLMFactory.LocalAI,
|
|
LLMFactory.LMStudio,
|
|
LLMFactory.OpenAiAPICompatible,
|
|
LLMFactory.TogetherAI,
|
|
LLMFactory.Replicate,
|
|
LLMFactory.OpenRouter,
|
|
LLMFactory.HuggingFace,
|
|
LLMFactory.GPUStack,
|
|
LLMFactory.ModelScope,
|
|
LLMFactory.VLLM,
|
|
LLMFactory.RAGcon,
|
|
];
|
|
|
|
export enum TenantRole {
|
|
Owner = 'owner',
|
|
Invite = 'invite',
|
|
Normal = 'normal',
|
|
}
|