'use client' import type { FC } from 'react' import React from 'react' import { useTranslation } from 'react-i18next' import { ModelType, type ProviderEnum } from '@/app/components/header/account-setting/model-page/declarations' import ModelSelector from '@/app/components/header/account-setting/model-page/model-selector' export type IModelConfigProps = { modelId: string providerName: ProviderEnum onChange?: (modelId: string, providerName: ProviderEnum) => void readonly?: boolean } const ModelConfig: FC = ({ modelId, providerName, onChange, readonly, }) => { const { t } = useTranslation() return (
{t('explore.universalChat.model')}
{ onChange?.(model.model_name, model.model_provider.provider_name) }} readonly={readonly} />
) } export default React.memo(ModelConfig)