jina.tsx 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. import { ProviderEnum } from '../declarations'
  2. import type { ProviderConfig } from '../declarations'
  3. import { Jina, JinaText } from '@/app/components/base/icons/src/public/llm'
  4. const config: ProviderConfig = {
  5. selector: {
  6. name: {
  7. 'en': 'Jina AI',
  8. 'zh-Hans': 'Jina AI',
  9. },
  10. icon: <Jina className='w-full h-full' />,
  11. },
  12. item: {
  13. key: ProviderEnum.jina,
  14. titleIcon: {
  15. 'en': <JinaText className='w-[58px] h-6' />,
  16. 'zh-Hans': <JinaText className='w-[58px] h-6' />,
  17. },
  18. hit: {
  19. 'en': 'Embedding Model Supported',
  20. 'zh-Hans': '支持 Embedding 模型',
  21. },
  22. },
  23. modal: {
  24. key: ProviderEnum.jina,
  25. title: {
  26. 'en': 'Embedding Model',
  27. 'zh-Hans': 'Embedding 模型',
  28. },
  29. icon: <JinaText className='w-[58px] h-6' />,
  30. link: {
  31. href: 'https://jina.ai/embeddings/',
  32. label: {
  33. 'en': 'Get your API key from Jina AI',
  34. 'zh-Hans': '从 Jina AI 获取 API Key',
  35. },
  36. },
  37. validateKeys: ['api_key'],
  38. fields: [
  39. {
  40. type: 'text',
  41. key: 'api_key',
  42. required: true,
  43. label: {
  44. 'en': 'API Key',
  45. 'zh-Hans': 'API Key',
  46. },
  47. placeholder: {
  48. 'en': 'Enter your API key here',
  49. 'zh-Hans': '在此输入您的 API Key',
  50. },
  51. },
  52. ],
  53. },
  54. }
  55. export default config