feat: add mode in welcome

This commit is contained in:
Henry Li
2026-02-09 00:41:25 +08:00
parent d9b60778a9
commit d197ee8f28
2 changed files with 13 additions and 3 deletions

View File

@@ -274,7 +274,9 @@ export default function ChatPage() {
autoFocus={isNewThread}
status={thread.isLoading ? "streaming" : "ready"}
context={settings.context}
extraHeader={isNewThread && <Welcome />}
extraHeader={
isNewThread && <Welcome mode={settings.context.mode} />
}
disabled={env.NEXT_PUBLIC_STATIC_WEBSITE_ONLY === "true"}
onContextChange={(context) =>
setSettings("context", context)