mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-29 19:06:24 +02:00
fix(bug): opboarding onno global llm configs
This commit is contained in:
parent
f242071a3c
commit
6e4cc2e4d7
3 changed files with 15 additions and 4 deletions
|
|
@ -150,14 +150,21 @@ const OnboardPage = () => {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// No configs available - show LLM setup
|
// Show LLM setup if no configs available OR if roles are not assigned yet
|
||||||
if (allConfigs.length === 0) {
|
// This forces users to complete role assignment before seeing the final screen
|
||||||
|
if (allConfigs.length === 0 || !isOnboardingComplete()) {
|
||||||
return (
|
return (
|
||||||
<OnboardLLMSetup
|
<OnboardLLMSetup
|
||||||
searchSpaceId={searchSpaceId}
|
searchSpaceId={searchSpaceId}
|
||||||
title={t("welcome_title")}
|
title={t("welcome_title")}
|
||||||
configTitle={t("setup_llm_configuration")}
|
configTitle={
|
||||||
configDescription={t("configure_providers_and_assign_roles")}
|
allConfigs.length === 0 ? t("setup_llm_configuration") : t("assign_llm_roles_title")
|
||||||
|
}
|
||||||
|
configDescription={
|
||||||
|
allConfigs.length === 0
|
||||||
|
? t("configure_providers_and_assign_roles")
|
||||||
|
: t("complete_role_assignment")
|
||||||
|
}
|
||||||
onConfigCreated={refreshConfigs}
|
onConfigCreated={refreshConfigs}
|
||||||
onConfigDeleted={refreshConfigs}
|
onConfigDeleted={refreshConfigs}
|
||||||
onPreferencesUpdated={refreshPreferences}
|
onPreferencesUpdated={refreshPreferences}
|
||||||
|
|
|
||||||
|
|
@ -538,6 +538,8 @@
|
||||||
"assign_llm_roles": "Assign LLM Roles",
|
"assign_llm_roles": "Assign LLM Roles",
|
||||||
"setup_llm_configuration": "Setup LLM Configuration",
|
"setup_llm_configuration": "Setup LLM Configuration",
|
||||||
"configure_providers_and_assign_roles": "Add your LLM providers and assign them to specific roles",
|
"configure_providers_and_assign_roles": "Add your LLM providers and assign them to specific roles",
|
||||||
|
"assign_llm_roles_title": "Assign LLM Roles",
|
||||||
|
"complete_role_assignment": "Assign your LLM configurations to specific roles to continue",
|
||||||
"setup_complete": "Setup Complete",
|
"setup_complete": "Setup Complete",
|
||||||
"configure_first_provider": "Configure your first model provider",
|
"configure_first_provider": "Configure your first model provider",
|
||||||
"assign_specific_roles": "Assign specific roles to your LLM configurations",
|
"assign_specific_roles": "Assign specific roles to your LLM configurations",
|
||||||
|
|
|
||||||
|
|
@ -538,6 +538,8 @@
|
||||||
"assign_llm_roles": "分配 LLM 角色",
|
"assign_llm_roles": "分配 LLM 角色",
|
||||||
"setup_llm_configuration": "设置 LLM 配置",
|
"setup_llm_configuration": "设置 LLM 配置",
|
||||||
"configure_providers_and_assign_roles": "添加您的 LLM 提供商并为其分配特定角色",
|
"configure_providers_and_assign_roles": "添加您的 LLM 提供商并为其分配特定角色",
|
||||||
|
"assign_llm_roles_title": "分配 LLM 角色",
|
||||||
|
"complete_role_assignment": "为您的 LLM 配置分配特定角色以继续",
|
||||||
"setup_complete": "设置完成",
|
"setup_complete": "设置完成",
|
||||||
"configure_first_provider": "配置您的第一个模型提供商",
|
"configure_first_provider": "配置您的第一个模型提供商",
|
||||||
"assign_specific_roles": "为您的 LLM 配置分配特定角色",
|
"assign_specific_roles": "为您的 LLM 配置分配特定角色",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue