mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-09 14:59:27 +08:00
fix: graph rag model id
This commit is contained in:
parent
3ccebb503f
commit
e8dac28787
@ -13,7 +13,7 @@ interface Props {
|
|||||||
|
|
||||||
const GraphRAGSettings: FC<Props> = ({ provider }) => {
|
const GraphRAGSettings: FC<Props> = ({ provider }) => {
|
||||||
const apiUrl = provider.apiHost
|
const apiUrl = provider.apiHost
|
||||||
const modalId = provider.models[0].id
|
const modalId = provider.models.filter((model) => model.id.includes('global'))[0]?.id
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
|
|
||||||
const onShowGraphRAG = async () => {
|
const onShowGraphRAG = async () => {
|
||||||
@ -22,6 +22,10 @@ const GraphRAGSettings: FC<Props> = ({ provider }) => {
|
|||||||
MinApp.start({ url, title: t('words.knowledgeGraph') })
|
MinApp.start({ url, title: t('words.knowledgeGraph') })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!modalId) {
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Container>
|
<Container>
|
||||||
<SettingSubtitle>{t('words.knowledgeGraph')}</SettingSubtitle>
|
<SettingSubtitle>{t('words.knowledgeGraph')}</SettingSubtitle>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user