mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-07 21:50:17 +02:00
Fix SwitchModelModal
This commit is contained in:
parent
2138c0b69d
commit
159453f8d7
@ -146,12 +146,12 @@ export default async function Page({
|
|||||||
<InstantSSRAutoRefresh />
|
<InstantSSRAutoRefresh />
|
||||||
<ApiKeyModal />
|
<ApiKeyModal />
|
||||||
|
|
||||||
{connectors.length === 0 && (
|
{connectors.length === 0 ? (
|
||||||
<WelcomeModal embeddingModelName={embeddingModelName} />
|
<WelcomeModal embeddingModelName={embeddingModelName} />
|
||||||
)}
|
) : (
|
||||||
|
!checkModelNameIsValid(embeddingModelName) && (
|
||||||
{!checkModelNameIsValid(embeddingModelName) && (
|
|
||||||
<SwitchModelModal embeddingModelName={embeddingModelName} />
|
<SwitchModelModal embeddingModelName={embeddingModelName} />
|
||||||
|
)
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<ChatLayout
|
<ChatLayout
|
||||||
|
@ -128,12 +128,12 @@ export default async function Home() {
|
|||||||
<ApiKeyModal />
|
<ApiKeyModal />
|
||||||
<InstantSSRAutoRefresh />
|
<InstantSSRAutoRefresh />
|
||||||
|
|
||||||
{connectors.length === 0 && connectorsResponse?.ok && (
|
{connectors.length === 0 ? (
|
||||||
<WelcomeModal embeddingModelName={embeddingModelName} />
|
<WelcomeModal embeddingModelName={embeddingModelName} />
|
||||||
)}
|
) : (
|
||||||
|
!checkModelNameIsValid(embeddingModelName) && (
|
||||||
{!checkModelNameIsValid(embeddingModelName) && (
|
|
||||||
<SwitchModelModal embeddingModelName={embeddingModelName} />
|
<SwitchModelModal embeddingModelName={embeddingModelName} />
|
||||||
|
)
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<div className="px-24 pt-10 flex flex-col items-center min-h-screen">
|
<div className="px-24 pt-10 flex flex-col items-center min-h-screen">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user