Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

constants.tsx 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import {
  2. ApiIcon,
  3. LogOutIcon,
  4. ModelProviderIcon,
  5. PasswordIcon,
  6. ProfileIcon,
  7. TeamIcon,
  8. } from '@/assets/icon/next-icon';
  9. import { IconFont } from '@/components/icon-font';
  10. import { LLMFactory } from '@/constants/llm';
  11. import { UserSettingRouteKey } from '@/constants/setting';
  12. import { MonitorOutlined } from '@ant-design/icons';
  13. export const UserSettingIconMap = {
  14. [UserSettingRouteKey.Profile]: <ProfileIcon />,
  15. [UserSettingRouteKey.Password]: <PasswordIcon />,
  16. [UserSettingRouteKey.Model]: <ModelProviderIcon />,
  17. [UserSettingRouteKey.System]: <MonitorOutlined style={{ fontSize: 24 }} />,
  18. [UserSettingRouteKey.Team]: <TeamIcon />,
  19. [UserSettingRouteKey.Logout]: <LogOutIcon />,
  20. [UserSettingRouteKey.Api]: <ApiIcon />,
  21. [UserSettingRouteKey.MCP]: (
  22. <IconFont name="mcp" className="size-6"></IconFont>
  23. ),
  24. };
  25. export * from '@/constants/setting';
  26. export const LocalLlmFactories = [
  27. LLMFactory.Ollama,
  28. LLMFactory.Xinference,
  29. LLMFactory.LocalAI,
  30. LLMFactory.LMStudio,
  31. LLMFactory.OpenAiAPICompatible,
  32. LLMFactory.TogetherAI,
  33. LLMFactory.Replicate,
  34. LLMFactory.OpenRouter,
  35. LLMFactory.HuggingFace,
  36. LLMFactory.GPUStack,
  37. LLMFactory.ModelScope,
  38. LLMFactory.VLLM,
  39. ];
  40. export enum TenantRole {
  41. Owner = 'owner',
  42. Invite = 'invite',
  43. Normal = 'normal',
  44. }