├── .github └── workflows │ └── open-ai-app.yml ├── .gitignore ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── SECURITY.md ├── SUPPORT.md ├── images ├── architecture.png ├── chat-history.png ├── chat-home.png ├── intro.png └── runworkflow.png ├── infra ├── main.bicep ├── main.json ├── main.parameters.json └── resources.bicep └── src ├── .env.example ├── .eslintrc.json ├── app ├── api │ ├── auth │ │ └── [...nextauth] │ │ │ └── route.ts │ └── chat │ │ └── route.ts ├── chat │ ├── [id] │ │ ├── loading.tsx │ │ ├── not-found.tsx │ │ └── page.tsx │ ├── layout.tsx │ ├── loading.tsx │ └── page.tsx ├── favicon.ico ├── globals.css ├── layout.tsx ├── loading.tsx ├── page.tsx └── reporting │ ├── [chatid] │ ├── loading.tsx │ └── page.tsx │ ├── layout.tsx │ ├── loading.tsx │ └── page.tsx ├── components.json ├── components ├── chat │ ├── chat-input.tsx │ ├── chat-loading.tsx │ ├── chat-row.tsx │ ├── code-block.tsx │ └── memoized-react-markdown.tsx ├── hooks │ └── use-chat-scroll-anchor.tsx ├── login │ └── login.tsx ├── menu.tsx ├── theme-provider.tsx ├── typography.tsx └── ui │ ├── avatar.tsx │ ├── button.tsx │ ├── card.tsx │ ├── dropdown-menu.tsx │ ├── input.tsx │ ├── label.tsx │ ├── table.tsx │ ├── tabs.tsx │ ├── textarea.tsx │ ├── toast.tsx │ ├── toaster.tsx │ └── use-toast.ts ├── dockerfile ├── features ├── auth │ ├── auth-api.ts │ ├── helpers.ts │ └── protected-page.tsx ├── azure-cog-search │ └── azure-cog-vector-store.ts ├── chat │ ├── chat-api-data.ts │ ├── chat-api-helpers.ts │ ├── chat-api.ts │ ├── chat-helpers.ts │ ├── chat-menu │ │ ├── chat-menu.tsx │ │ ├── menu-items.tsx │ │ └── new-chat.tsx │ ├── chat-service.ts │ ├── chat-thread-service.ts │ └── chat-ui.tsx ├── common │ └── cosmos.ts ├── langchain │ └── stores │ │ ├── cosmosdb-chat-service.ts │ │ ├── cosmosdb.ts │ │ └── utils.ts ├── loading-skeleton.tsx ├── menu │ └── menu.tsx ├── providers.tsx ├── reporting │ ├── chat-reporting-ui.tsx │ ├── reporting-service.ts │ └── reporting.tsx ├── theme │ └── theme-toggle.tsx └── user-profile.tsx ├── lib └── utils.ts ├── middleware.ts ├── next.config.js ├── package-lock.json ├── package.json ├── postcss.config.js ├── public └── ai-icon.png ├── tailwind.config.js ├── tsconfig.json └── type.ts /.github/workflows/open-ai-app.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/.github/workflows/open-ai-app.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/.gitignore -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/SECURITY.md -------------------------------------------------------------------------------- /SUPPORT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/SUPPORT.md -------------------------------------------------------------------------------- /images/architecture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/images/architecture.png -------------------------------------------------------------------------------- /images/chat-history.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/images/chat-history.png -------------------------------------------------------------------------------- /images/chat-home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/images/chat-home.png -------------------------------------------------------------------------------- /images/intro.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/images/intro.png -------------------------------------------------------------------------------- /images/runworkflow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/images/runworkflow.png -------------------------------------------------------------------------------- /infra/main.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/infra/main.bicep -------------------------------------------------------------------------------- /infra/main.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/infra/main.json -------------------------------------------------------------------------------- /infra/main.parameters.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/infra/main.parameters.json -------------------------------------------------------------------------------- /infra/resources.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/infra/resources.bicep -------------------------------------------------------------------------------- /src/.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/.env.example -------------------------------------------------------------------------------- /src/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /src/app/api/auth/[...nextauth]/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/app/api/auth/[...nextauth]/route.ts -------------------------------------------------------------------------------- /src/app/api/chat/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/app/api/chat/route.ts -------------------------------------------------------------------------------- /src/app/chat/[id]/loading.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/app/chat/[id]/loading.tsx -------------------------------------------------------------------------------- /src/app/chat/[id]/not-found.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/app/chat/[id]/not-found.tsx -------------------------------------------------------------------------------- /src/app/chat/[id]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/app/chat/[id]/page.tsx -------------------------------------------------------------------------------- /src/app/chat/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/app/chat/layout.tsx -------------------------------------------------------------------------------- /src/app/chat/loading.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/app/chat/loading.tsx -------------------------------------------------------------------------------- /src/app/chat/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/app/chat/page.tsx -------------------------------------------------------------------------------- /src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/app/favicon.ico -------------------------------------------------------------------------------- /src/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/app/globals.css -------------------------------------------------------------------------------- /src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/app/layout.tsx -------------------------------------------------------------------------------- /src/app/loading.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/app/loading.tsx -------------------------------------------------------------------------------- /src/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/app/page.tsx -------------------------------------------------------------------------------- /src/app/reporting/[chatid]/loading.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/app/reporting/[chatid]/loading.tsx -------------------------------------------------------------------------------- /src/app/reporting/[chatid]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/app/reporting/[chatid]/page.tsx -------------------------------------------------------------------------------- /src/app/reporting/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/app/reporting/layout.tsx -------------------------------------------------------------------------------- /src/app/reporting/loading.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/app/reporting/loading.tsx -------------------------------------------------------------------------------- /src/app/reporting/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/app/reporting/page.tsx -------------------------------------------------------------------------------- /src/components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/components.json -------------------------------------------------------------------------------- /src/components/chat/chat-input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/components/chat/chat-input.tsx -------------------------------------------------------------------------------- /src/components/chat/chat-loading.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/components/chat/chat-loading.tsx -------------------------------------------------------------------------------- /src/components/chat/chat-row.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/components/chat/chat-row.tsx -------------------------------------------------------------------------------- /src/components/chat/code-block.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/components/chat/code-block.tsx -------------------------------------------------------------------------------- /src/components/chat/memoized-react-markdown.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/components/chat/memoized-react-markdown.tsx -------------------------------------------------------------------------------- /src/components/hooks/use-chat-scroll-anchor.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/components/hooks/use-chat-scroll-anchor.tsx -------------------------------------------------------------------------------- /src/components/login/login.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/components/login/login.tsx -------------------------------------------------------------------------------- /src/components/menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/components/menu.tsx -------------------------------------------------------------------------------- /src/components/theme-provider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/components/theme-provider.tsx -------------------------------------------------------------------------------- /src/components/typography.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/components/typography.tsx -------------------------------------------------------------------------------- /src/components/ui/avatar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/components/ui/avatar.tsx -------------------------------------------------------------------------------- /src/components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/components/ui/button.tsx -------------------------------------------------------------------------------- /src/components/ui/card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/components/ui/card.tsx -------------------------------------------------------------------------------- /src/components/ui/dropdown-menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/components/ui/dropdown-menu.tsx -------------------------------------------------------------------------------- /src/components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/components/ui/input.tsx -------------------------------------------------------------------------------- /src/components/ui/label.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/components/ui/label.tsx -------------------------------------------------------------------------------- /src/components/ui/table.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/components/ui/table.tsx -------------------------------------------------------------------------------- /src/components/ui/tabs.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/components/ui/tabs.tsx -------------------------------------------------------------------------------- /src/components/ui/textarea.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/components/ui/textarea.tsx -------------------------------------------------------------------------------- /src/components/ui/toast.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/components/ui/toast.tsx -------------------------------------------------------------------------------- /src/components/ui/toaster.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/components/ui/toaster.tsx -------------------------------------------------------------------------------- /src/components/ui/use-toast.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/components/ui/use-toast.ts -------------------------------------------------------------------------------- /src/dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/dockerfile -------------------------------------------------------------------------------- /src/features/auth/auth-api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/features/auth/auth-api.ts -------------------------------------------------------------------------------- /src/features/auth/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/features/auth/helpers.ts -------------------------------------------------------------------------------- /src/features/auth/protected-page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/features/auth/protected-page.tsx -------------------------------------------------------------------------------- /src/features/azure-cog-search/azure-cog-vector-store.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/features/azure-cog-search/azure-cog-vector-store.ts -------------------------------------------------------------------------------- /src/features/chat/chat-api-data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/features/chat/chat-api-data.ts -------------------------------------------------------------------------------- /src/features/chat/chat-api-helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/features/chat/chat-api-helpers.ts -------------------------------------------------------------------------------- /src/features/chat/chat-api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/features/chat/chat-api.ts -------------------------------------------------------------------------------- /src/features/chat/chat-helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/features/chat/chat-helpers.ts -------------------------------------------------------------------------------- /src/features/chat/chat-menu/chat-menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/features/chat/chat-menu/chat-menu.tsx -------------------------------------------------------------------------------- /src/features/chat/chat-menu/menu-items.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/features/chat/chat-menu/menu-items.tsx -------------------------------------------------------------------------------- /src/features/chat/chat-menu/new-chat.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/features/chat/chat-menu/new-chat.tsx -------------------------------------------------------------------------------- /src/features/chat/chat-service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/features/chat/chat-service.ts -------------------------------------------------------------------------------- /src/features/chat/chat-thread-service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/features/chat/chat-thread-service.ts -------------------------------------------------------------------------------- /src/features/chat/chat-ui.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/features/chat/chat-ui.tsx -------------------------------------------------------------------------------- /src/features/common/cosmos.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/features/common/cosmos.ts -------------------------------------------------------------------------------- /src/features/langchain/stores/cosmosdb-chat-service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/features/langchain/stores/cosmosdb-chat-service.ts -------------------------------------------------------------------------------- /src/features/langchain/stores/cosmosdb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/features/langchain/stores/cosmosdb.ts -------------------------------------------------------------------------------- /src/features/langchain/stores/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/features/langchain/stores/utils.ts -------------------------------------------------------------------------------- /src/features/loading-skeleton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/features/loading-skeleton.tsx -------------------------------------------------------------------------------- /src/features/menu/menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/features/menu/menu.tsx -------------------------------------------------------------------------------- /src/features/providers.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/features/providers.tsx -------------------------------------------------------------------------------- /src/features/reporting/chat-reporting-ui.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/features/reporting/chat-reporting-ui.tsx -------------------------------------------------------------------------------- /src/features/reporting/reporting-service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/features/reporting/reporting-service.ts -------------------------------------------------------------------------------- /src/features/reporting/reporting.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/features/reporting/reporting.tsx -------------------------------------------------------------------------------- /src/features/theme/theme-toggle.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/features/theme/theme-toggle.tsx -------------------------------------------------------------------------------- /src/features/user-profile.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/features/user-profile.tsx -------------------------------------------------------------------------------- /src/lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/lib/utils.ts -------------------------------------------------------------------------------- /src/middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/middleware.ts -------------------------------------------------------------------------------- /src/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/next.config.js -------------------------------------------------------------------------------- /src/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/package-lock.json -------------------------------------------------------------------------------- /src/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/package.json -------------------------------------------------------------------------------- /src/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/postcss.config.js -------------------------------------------------------------------------------- /src/public/ai-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/public/ai-icon.png -------------------------------------------------------------------------------- /src/tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/tailwind.config.js -------------------------------------------------------------------------------- /src/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/tsconfig.json -------------------------------------------------------------------------------- /src/type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anmuk/AzureChatGPT/HEAD/src/type.ts --------------------------------------------------------------------------------