12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- import { ProviderEnum } from '../declarations'
- import type { ProviderConfig } from '../declarations'
- import { Chatglm, ChatglmText } from '@/app/components/base/icons/src/public/llm'
- const config: ProviderConfig = {
- selector: {
- name: {
- 'en': 'ChatGLM',
- 'zh-Hans': 'ChatGLM',
- },
- icon: <Chatglm className='w-full h-full' />,
- },
- item: {
- key: ProviderEnum.chatglm,
- titleIcon: {
- 'en': <ChatglmText className='h-6' />,
- 'zh-Hans': <ChatglmText className='h-6' />,
- },
- disable: {
- tip: {
- 'en': 'Only supports the ',
- 'zh-Hans': '仅支持',
- },
- link: {
- href: {
- 'en': 'https://docs.dify.ai/getting-started/install-self-hosted',
- 'zh-Hans': 'https://docs.dify.ai/v/zh-hans/getting-started/install-self-hosted',
- },
- label: {
- 'en': 'community open-source version',
- 'zh-Hans': '社区开源版本',
- },
- },
- },
- },
- modal: {
- key: ProviderEnum.chatglm,
- title: {
- 'en': 'ChatGLM',
- 'zh-Hans': 'ChatGLM',
- },
- icon: <Chatglm className='h-6' />,
- link: {
- href: 'https://github.com/THUDM/ChatGLM-6B#api%E9%83%A8%E7%BD%B2',
- label: {
- 'en': 'How to deploy ChatGLM',
- 'zh-Hans': '如何部署 ChatGLM',
- },
- },
- validateKeys: ['api_base'],
- fields: [
- {
- type: 'text',
- key: 'api_base',
- required: true,
- label: {
- 'en': 'Custom API Domain',
- 'zh-Hans': '自定义 API 域名',
- },
- placeholder: {
- 'en': 'Enter your API domain, eg: https://example.com/xxx',
- 'zh-Hans': '在此输入您的 API 域名,如:https://example.com/xxx',
- },
- },
- ],
- },
- }
- export default config
|