├── .dockerignore ├── .eslintrc ├── .gitignore ├── .husky └── commit-msg ├── .prettierrc.js ├── .vscode └── settings.json ├── Dockerfile ├── README-CN.md ├── README.md ├── commitlint.config.js ├── components.json ├── messages ├── en.json └── zh.json ├── next.config.js ├── package.json ├── pnpm-lock.yaml ├── postcss.config.js ├── public ├── assets │ └── logo.svg ├── favicon.ico ├── next.svg └── vercel.svg ├── src ├── app │ ├── [locale] │ │ ├── (main) │ │ │ └── page.tsx │ │ ├── LanguageSwitcher.tsx │ │ ├── MainContainer.tsx │ │ ├── SettingContent.tsx │ │ ├── SideBar.tsx │ │ ├── ThemeSwitcher.tsx │ │ ├── TopBar.tsx │ │ ├── chat │ │ │ └── [chatId] │ │ │ │ ├── RenderChatMessages.tsx │ │ │ │ ├── RenderNoChat.tsx │ │ │ │ └── page.tsx │ │ └── layout.tsx │ ├── globals.css │ └── layout.tsx ├── components │ ├── AppIntroduce.tsx │ ├── ConvertToMarkdown.tsx │ ├── FunctionButton │ │ ├── Button.tsx │ │ ├── FunctionButton.tsx │ │ ├── ModelSetting │ │ │ ├── AdvanceSetting.tsx │ │ │ ├── ModelSetting.tsx │ │ │ ├── ModelSettingDialog.tsx │ │ │ ├── ModelSwitcher.tsx │ │ │ └── PageModelSet.tsx │ │ ├── Prompts.tsx │ │ ├── ReGenerate.tsx │ │ ├── Share.tsx │ │ └── StopGenerate.tsx │ ├── Logo.tsx │ ├── PromptInput.tsx │ ├── SearchInput.tsx │ ├── promptLibModal │ │ ├── CustomPrompt.tsx │ │ ├── PromptContent.tsx │ │ ├── PromptItem.tsx │ │ └── PromptLibModal.tsx │ ├── sidebar │ │ ├── SideBarChat.tsx │ │ ├── SideBarChatItem.tsx │ │ ├── SideBarFooter.tsx │ │ ├── SideBarIndex.tsx │ │ └── SideBarNewChat.tsx │ └── ui │ │ ├── button.tsx │ │ ├── collapsible.tsx │ │ ├── dialog.tsx │ │ ├── dropdown-menu.tsx │ │ ├── input.tsx │ │ ├── label.tsx │ │ ├── select.tsx │ │ ├── switch.tsx │ │ ├── tabs.tsx │ │ └── textarea.tsx ├── const.ts ├── const │ ├── errorReason.ts │ ├── prompts │ │ ├── cnPrompts.ts │ │ └── enPrompts.ts │ └── switcher.ts ├── hooks │ └── useScrollToView.ts ├── lib │ ├── createApi.ts │ └── utils.ts ├── middleware.tsx ├── pages │ └── api │ │ └── askQuestion.ts ├── provider │ ├── ThemeProvider.tsx │ └── Toast.tsx ├── store │ ├── chat.ts │ ├── page.ts │ ├── promptLib.ts │ └── sidebarStore.ts └── tools.ts ├── tailwind.config.js ├── tsconfig.json └── typing.d.ts /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/.dockerignore -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/.eslintrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/.husky/commit-msg -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/.prettierrc.js -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/Dockerfile -------------------------------------------------------------------------------- /README-CN.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/README-CN.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/README.md -------------------------------------------------------------------------------- /commitlint.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { extends: ["@commitlint/config-conventional"] }; 2 | -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/components.json -------------------------------------------------------------------------------- /messages/en.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/messages/en.json -------------------------------------------------------------------------------- /messages/zh.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/messages/zh.json -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | experimental: { appDir: true }, 3 | }; 4 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/postcss.config.js -------------------------------------------------------------------------------- /public/assets/logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/public/assets/logo.svg -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /src/app/[locale]/(main)/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/app/[locale]/(main)/page.tsx -------------------------------------------------------------------------------- /src/app/[locale]/LanguageSwitcher.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/app/[locale]/LanguageSwitcher.tsx -------------------------------------------------------------------------------- /src/app/[locale]/MainContainer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/app/[locale]/MainContainer.tsx -------------------------------------------------------------------------------- /src/app/[locale]/SettingContent.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/app/[locale]/SettingContent.tsx -------------------------------------------------------------------------------- /src/app/[locale]/SideBar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/app/[locale]/SideBar.tsx -------------------------------------------------------------------------------- /src/app/[locale]/ThemeSwitcher.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/app/[locale]/ThemeSwitcher.tsx -------------------------------------------------------------------------------- /src/app/[locale]/TopBar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/app/[locale]/TopBar.tsx -------------------------------------------------------------------------------- /src/app/[locale]/chat/[chatId]/RenderChatMessages.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/app/[locale]/chat/[chatId]/RenderChatMessages.tsx -------------------------------------------------------------------------------- /src/app/[locale]/chat/[chatId]/RenderNoChat.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/app/[locale]/chat/[chatId]/RenderNoChat.tsx -------------------------------------------------------------------------------- /src/app/[locale]/chat/[chatId]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/app/[locale]/chat/[chatId]/page.tsx -------------------------------------------------------------------------------- /src/app/[locale]/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/app/[locale]/layout.tsx -------------------------------------------------------------------------------- /src/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/app/globals.css -------------------------------------------------------------------------------- /src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/app/layout.tsx -------------------------------------------------------------------------------- /src/components/AppIntroduce.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/AppIntroduce.tsx -------------------------------------------------------------------------------- /src/components/ConvertToMarkdown.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/ConvertToMarkdown.tsx -------------------------------------------------------------------------------- /src/components/FunctionButton/Button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/FunctionButton/Button.tsx -------------------------------------------------------------------------------- /src/components/FunctionButton/FunctionButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/FunctionButton/FunctionButton.tsx -------------------------------------------------------------------------------- /src/components/FunctionButton/ModelSetting/AdvanceSetting.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/FunctionButton/ModelSetting/AdvanceSetting.tsx -------------------------------------------------------------------------------- /src/components/FunctionButton/ModelSetting/ModelSetting.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/FunctionButton/ModelSetting/ModelSetting.tsx -------------------------------------------------------------------------------- /src/components/FunctionButton/ModelSetting/ModelSettingDialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/FunctionButton/ModelSetting/ModelSettingDialog.tsx -------------------------------------------------------------------------------- /src/components/FunctionButton/ModelSetting/ModelSwitcher.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/FunctionButton/ModelSetting/ModelSwitcher.tsx -------------------------------------------------------------------------------- /src/components/FunctionButton/ModelSetting/PageModelSet.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/FunctionButton/ModelSetting/PageModelSet.tsx -------------------------------------------------------------------------------- /src/components/FunctionButton/Prompts.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/FunctionButton/Prompts.tsx -------------------------------------------------------------------------------- /src/components/FunctionButton/ReGenerate.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/FunctionButton/ReGenerate.tsx -------------------------------------------------------------------------------- /src/components/FunctionButton/Share.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/FunctionButton/Share.tsx -------------------------------------------------------------------------------- /src/components/FunctionButton/StopGenerate.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/FunctionButton/StopGenerate.tsx -------------------------------------------------------------------------------- /src/components/Logo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/Logo.tsx -------------------------------------------------------------------------------- /src/components/PromptInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/PromptInput.tsx -------------------------------------------------------------------------------- /src/components/SearchInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/SearchInput.tsx -------------------------------------------------------------------------------- /src/components/promptLibModal/CustomPrompt.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/promptLibModal/CustomPrompt.tsx -------------------------------------------------------------------------------- /src/components/promptLibModal/PromptContent.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/promptLibModal/PromptContent.tsx -------------------------------------------------------------------------------- /src/components/promptLibModal/PromptItem.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/promptLibModal/PromptItem.tsx -------------------------------------------------------------------------------- /src/components/promptLibModal/PromptLibModal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/promptLibModal/PromptLibModal.tsx -------------------------------------------------------------------------------- /src/components/sidebar/SideBarChat.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/sidebar/SideBarChat.tsx -------------------------------------------------------------------------------- /src/components/sidebar/SideBarChatItem.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/sidebar/SideBarChatItem.tsx -------------------------------------------------------------------------------- /src/components/sidebar/SideBarFooter.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/sidebar/SideBarFooter.tsx -------------------------------------------------------------------------------- /src/components/sidebar/SideBarIndex.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/sidebar/SideBarIndex.tsx -------------------------------------------------------------------------------- /src/components/sidebar/SideBarNewChat.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/sidebar/SideBarNewChat.tsx -------------------------------------------------------------------------------- /src/components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/ui/button.tsx -------------------------------------------------------------------------------- /src/components/ui/collapsible.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/ui/collapsible.tsx -------------------------------------------------------------------------------- /src/components/ui/dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/ui/dialog.tsx -------------------------------------------------------------------------------- /src/components/ui/dropdown-menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/ui/dropdown-menu.tsx -------------------------------------------------------------------------------- /src/components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/ui/input.tsx -------------------------------------------------------------------------------- /src/components/ui/label.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/ui/label.tsx -------------------------------------------------------------------------------- /src/components/ui/select.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/ui/select.tsx -------------------------------------------------------------------------------- /src/components/ui/switch.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/ui/switch.tsx -------------------------------------------------------------------------------- /src/components/ui/tabs.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/ui/tabs.tsx -------------------------------------------------------------------------------- /src/components/ui/textarea.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/components/ui/textarea.tsx -------------------------------------------------------------------------------- /src/const.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/const.ts -------------------------------------------------------------------------------- /src/const/errorReason.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/const/errorReason.ts -------------------------------------------------------------------------------- /src/const/prompts/cnPrompts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/const/prompts/cnPrompts.ts -------------------------------------------------------------------------------- /src/const/prompts/enPrompts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/const/prompts/enPrompts.ts -------------------------------------------------------------------------------- /src/const/switcher.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/const/switcher.ts -------------------------------------------------------------------------------- /src/hooks/useScrollToView.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/hooks/useScrollToView.ts -------------------------------------------------------------------------------- /src/lib/createApi.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/lib/createApi.ts -------------------------------------------------------------------------------- /src/lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/lib/utils.ts -------------------------------------------------------------------------------- /src/middleware.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/middleware.tsx -------------------------------------------------------------------------------- /src/pages/api/askQuestion.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/pages/api/askQuestion.ts -------------------------------------------------------------------------------- /src/provider/ThemeProvider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/provider/ThemeProvider.tsx -------------------------------------------------------------------------------- /src/provider/Toast.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/provider/Toast.tsx -------------------------------------------------------------------------------- /src/store/chat.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/store/chat.ts -------------------------------------------------------------------------------- /src/store/page.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/store/page.ts -------------------------------------------------------------------------------- /src/store/promptLib.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/store/promptLib.ts -------------------------------------------------------------------------------- /src/store/sidebarStore.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/store/sidebarStore.ts -------------------------------------------------------------------------------- /src/tools.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/src/tools.ts -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/tailwind.config.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/tsconfig.json -------------------------------------------------------------------------------- /typing.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/power-chatgpt/HEAD/typing.d.ts --------------------------------------------------------------------------------