This commit is contained in:
parent
907527ecf7
commit
9063270608
|
|
@ -27,6 +27,7 @@ import { usePathname } from "next/navigation"
|
||||||
import i18nConfig from "@/i18nConfig"
|
import i18nConfig from "@/i18nConfig"
|
||||||
|
|
||||||
import { createModel } from "@/db/models"
|
import { createModel } from "@/db/models"
|
||||||
|
import { useTranslation } from "react-i18next"
|
||||||
|
|
||||||
export default function SetupPage() {
|
export default function SetupPage() {
|
||||||
const {
|
const {
|
||||||
|
|
@ -40,6 +41,7 @@ export default function SetupPage() {
|
||||||
} = useContext(ChatbotUIContext)
|
} = useContext(ChatbotUIContext)
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
const { t } = useTranslation()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -268,11 +270,11 @@ export default function SetupPage() {
|
||||||
await createModel(
|
await createModel(
|
||||||
{
|
{
|
||||||
user_id: profile.user_id,
|
user_id: profile.user_id,
|
||||||
name: "Default",
|
name: t("setup.Default"),
|
||||||
model_id: "GPT",
|
model_id: "GPT",
|
||||||
base_url: baseUrl,
|
base_url: baseUrl,
|
||||||
api_key: "token-abc123",
|
api_key: "token-abc123",
|
||||||
description: "Default LLM model created during onboarding",
|
description: t("setup.DefaultLLMModelCreatedDuringOnboarding"),
|
||||||
context_length: 131072
|
context_length: 131072
|
||||||
},
|
},
|
||||||
homeWorkspace.id
|
homeWorkspace.id
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue