Fix/2969 add model provider ollama not work (#2973)

This commit is contained in:
crazywoola 2024-03-26 10:26:34 +08:00 • committed by GitHub
commit eeaa3c1643
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 309 additions and 133 deletions

View file

@ -219,7 +219,7 @@ const ModelModal: FC<ModelModalProps> = ({
const renderTitlePrefix = () => {
const prefix = configurateMethod === ConfigurateMethodEnum.customizableModel ? t('common.operation.add') : t('common.operation.setup')
return `${prefix} ${provider.label[language]}`
return `${prefix} ${provider.label[language] || provider.label.en_US}`
}
return (