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: , }, item: { key: ProviderEnum.chatglm, titleIcon: { 'en': , 'zh-Hans': , }, 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: , 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