minimax.tsx 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. import { ProviderEnum } from '../declarations'
  2. import type { ProviderConfig } from '../declarations'
  3. import { Minimax, MinimaxText } from '@/app/components/base/icons/src/image/llm'
  4. const config: ProviderConfig = {
  5. selector: {
  6. name: {
  7. 'en': 'MINIMAX',
  8. 'zh-Hans': 'MINIMAX',
  9. },
  10. icon: <Minimax className='w-full h-full' />,
  11. },
  12. item: {
  13. key: ProviderEnum.minimax,
  14. titleIcon: {
  15. 'en': <MinimaxText className='w-[84px] h-6' />,
  16. 'zh-Hans': <MinimaxText className='w-[84px] h-6' />,
  17. },
  18. },
  19. modal: {
  20. key: ProviderEnum.minimax,
  21. title: {
  22. 'en': 'MiniMax',
  23. 'zh-Hans': 'MiniMax',
  24. },
  25. icon: <Minimax className='w-6 h-6' />,
  26. link: {
  27. href: 'https://api.minimax.chat/user-center/basic-information/interface-key',
  28. label: {
  29. 'en': 'Get your API key from MiniMax',
  30. 'zh-Hans': '从 MiniMax 获取 API Key',
  31. },
  32. },
  33. validateKeys: [
  34. 'minimax_api_key',
  35. 'minimax_group_id',
  36. ],
  37. fields: [
  38. {
  39. type: 'text',
  40. key: 'minimax_api_key',
  41. required: true,
  42. label: {
  43. 'en': 'API Key',
  44. 'zh-Hans': 'API Key',
  45. },
  46. placeholder: {
  47. 'en': 'Enter your API key here',
  48. 'zh-Hans': '在此输入您的 API Key',
  49. },
  50. },
  51. {
  52. type: 'text',
  53. key: 'minimax_group_id',
  54. required: true,
  55. label: {
  56. 'en': 'Group ID',
  57. 'zh-Hans': 'Group ID',
  58. },
  59. placeholder: {
  60. 'en': 'Enter your Group ID here',
  61. 'zh-Hans': '在此输入您的 Group ID',
  62. },
  63. },
  64. ],
  65. },
  66. }
  67. export default config