├── .env.example ├── .eslintrc.json ├── .github └── funding.yaml ├── .gitignore ├── .husky └── pre-commit ├── README.md ├── actions ├── chats.ts ├── messages.ts ├── not-diamond │ ├── create-preference-id.ts │ ├── report-regeneration.ts │ ├── select-not-diamond-model.ts │ ├── submit-arena-choice.ts │ └── submit-feedback.ts └── stream-message.tsx ├── app ├── [chatid] │ └── page.tsx ├── global-error.tsx ├── globals.css ├── layout.tsx └── page.tsx ├── components.json ├── components ├── arena-mode-indicator.tsx ├── chats-bar │ └── chats-bar.tsx ├── chats │ ├── chat-list-item.tsx │ ├── chat.tsx │ ├── chats-list.tsx │ └── create-chat-button.tsx ├── dashboard.tsx ├── messages │ ├── assistant-message.tsx │ ├── copy-message.tsx │ ├── message-action-button.tsx │ ├── message-feedback.tsx │ ├── message-markdown-memoized.tsx │ ├── message-markdown.tsx │ ├── message-preference.tsx │ ├── message-stats.tsx │ ├── messsage-codeblock.tsx │ ├── regenerate-message-from-model.tsx │ ├── regenerate-message.tsx │ └── user-message.tsx ├── onboarding-message.tsx ├── router-progress-bar.tsx ├── settings-bar │ └── settings-bar.tsx ├── ui │ ├── accordion.tsx │ ├── alert-dialog.tsx │ ├── alert.tsx │ ├── aspect-ratio.tsx │ ├── avatar.tsx │ ├── badge.tsx │ ├── breadcrumb.tsx │ ├── button.tsx │ ├── calendar.tsx │ ├── card.tsx │ ├── carousel.tsx │ ├── checkbox.tsx │ ├── collapsible.tsx │ ├── command.tsx │ ├── context-menu.tsx │ ├── dialog.tsx │ ├── drawer.tsx │ ├── dropdown-menu.tsx │ ├── form.tsx │ ├── hover-card.tsx │ ├── input-otp.tsx │ ├── input.tsx │ ├── label.tsx │ ├── menubar.tsx │ ├── navigation-menu.tsx │ ├── pagination.tsx │ ├── popover.tsx │ ├── progress.tsx │ ├── radio-group.tsx │ ├── resizable.tsx │ ├── scroll-area.tsx │ ├── select.tsx │ ├── separator.tsx │ ├── sheet.tsx │ ├── skeleton.tsx │ ├── slider.tsx │ ├── sonner.tsx │ ├── switch.tsx │ ├── table.tsx │ ├── tabs.tsx │ ├── textarea.tsx │ ├── toast.tsx │ ├── toaster.tsx │ ├── toggle-group.tsx │ ├── toggle.tsx │ ├── tooltip.tsx │ └── use-toast.ts └── utility │ ├── providers.tsx │ └── wait-for-hydration.tsx ├── db ├── db.ts ├── migrations │ ├── 0000_lying_violations.sql │ └── meta │ │ ├── 0000_snapshot.json │ │ └── _journal.json ├── queries │ ├── chats.ts │ ├── messages.ts │ └── profiles.ts └── schema │ ├── chats.ts │ ├── index.ts │ ├── messages.ts │ └── profiles.ts ├── drizzle.config.ts ├── lib ├── context │ └── app-context.tsx ├── hooks │ └── use-copy-to-clipboard.tsx ├── not-diamond │ ├── not-diamond-config.ts │ └── select-random-model.ts ├── utils.ts └── utils │ ├── get-cost.ts │ ├── handle-fetch.ts │ └── local-storage.ts ├── license ├── next.config.mjs ├── package.json ├── postcss.config.mjs ├── prettier.config.cjs ├── public └── readme.png ├── tailwind.config.ts ├── tsconfig.json └── types └── chat-data.ts /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/.env.example -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.github/funding.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/.github/funding.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/.husky/pre-commit -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/README.md -------------------------------------------------------------------------------- /actions/chats.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/actions/chats.ts -------------------------------------------------------------------------------- /actions/messages.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/actions/messages.ts -------------------------------------------------------------------------------- /actions/not-diamond/create-preference-id.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/actions/not-diamond/create-preference-id.ts -------------------------------------------------------------------------------- /actions/not-diamond/report-regeneration.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/actions/not-diamond/report-regeneration.ts -------------------------------------------------------------------------------- /actions/not-diamond/select-not-diamond-model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/actions/not-diamond/select-not-diamond-model.ts -------------------------------------------------------------------------------- /actions/not-diamond/submit-arena-choice.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/actions/not-diamond/submit-arena-choice.ts -------------------------------------------------------------------------------- /actions/not-diamond/submit-feedback.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/actions/not-diamond/submit-feedback.ts -------------------------------------------------------------------------------- /actions/stream-message.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/actions/stream-message.tsx -------------------------------------------------------------------------------- /app/[chatid]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/app/[chatid]/page.tsx -------------------------------------------------------------------------------- /app/global-error.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/app/global-error.tsx -------------------------------------------------------------------------------- /app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/app/globals.css -------------------------------------------------------------------------------- /app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/app/layout.tsx -------------------------------------------------------------------------------- /app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/app/page.tsx -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components.json -------------------------------------------------------------------------------- /components/arena-mode-indicator.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/arena-mode-indicator.tsx -------------------------------------------------------------------------------- /components/chats-bar/chats-bar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/chats-bar/chats-bar.tsx -------------------------------------------------------------------------------- /components/chats/chat-list-item.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/chats/chat-list-item.tsx -------------------------------------------------------------------------------- /components/chats/chat.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/chats/chat.tsx -------------------------------------------------------------------------------- /components/chats/chats-list.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/chats/chats-list.tsx -------------------------------------------------------------------------------- /components/chats/create-chat-button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/chats/create-chat-button.tsx -------------------------------------------------------------------------------- /components/dashboard.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/dashboard.tsx -------------------------------------------------------------------------------- /components/messages/assistant-message.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/messages/assistant-message.tsx -------------------------------------------------------------------------------- /components/messages/copy-message.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/messages/copy-message.tsx -------------------------------------------------------------------------------- /components/messages/message-action-button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/messages/message-action-button.tsx -------------------------------------------------------------------------------- /components/messages/message-feedback.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/messages/message-feedback.tsx -------------------------------------------------------------------------------- /components/messages/message-markdown-memoized.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/messages/message-markdown-memoized.tsx -------------------------------------------------------------------------------- /components/messages/message-markdown.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/messages/message-markdown.tsx -------------------------------------------------------------------------------- /components/messages/message-preference.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/messages/message-preference.tsx -------------------------------------------------------------------------------- /components/messages/message-stats.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/messages/message-stats.tsx -------------------------------------------------------------------------------- /components/messages/messsage-codeblock.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/messages/messsage-codeblock.tsx -------------------------------------------------------------------------------- /components/messages/regenerate-message-from-model.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/messages/regenerate-message-from-model.tsx -------------------------------------------------------------------------------- /components/messages/regenerate-message.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/messages/regenerate-message.tsx -------------------------------------------------------------------------------- /components/messages/user-message.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/messages/user-message.tsx -------------------------------------------------------------------------------- /components/onboarding-message.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/onboarding-message.tsx -------------------------------------------------------------------------------- /components/router-progress-bar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/router-progress-bar.tsx -------------------------------------------------------------------------------- /components/settings-bar/settings-bar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/settings-bar/settings-bar.tsx -------------------------------------------------------------------------------- /components/ui/accordion.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/accordion.tsx -------------------------------------------------------------------------------- /components/ui/alert-dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/alert-dialog.tsx -------------------------------------------------------------------------------- /components/ui/alert.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/alert.tsx -------------------------------------------------------------------------------- /components/ui/aspect-ratio.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/aspect-ratio.tsx -------------------------------------------------------------------------------- /components/ui/avatar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/avatar.tsx -------------------------------------------------------------------------------- /components/ui/badge.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/badge.tsx -------------------------------------------------------------------------------- /components/ui/breadcrumb.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/breadcrumb.tsx -------------------------------------------------------------------------------- /components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/button.tsx -------------------------------------------------------------------------------- /components/ui/calendar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/calendar.tsx -------------------------------------------------------------------------------- /components/ui/card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/card.tsx -------------------------------------------------------------------------------- /components/ui/carousel.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/carousel.tsx -------------------------------------------------------------------------------- /components/ui/checkbox.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/checkbox.tsx -------------------------------------------------------------------------------- /components/ui/collapsible.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/collapsible.tsx -------------------------------------------------------------------------------- /components/ui/command.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/command.tsx -------------------------------------------------------------------------------- /components/ui/context-menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/context-menu.tsx -------------------------------------------------------------------------------- /components/ui/dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/dialog.tsx -------------------------------------------------------------------------------- /components/ui/drawer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/drawer.tsx -------------------------------------------------------------------------------- /components/ui/dropdown-menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/dropdown-menu.tsx -------------------------------------------------------------------------------- /components/ui/form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/form.tsx -------------------------------------------------------------------------------- /components/ui/hover-card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/hover-card.tsx -------------------------------------------------------------------------------- /components/ui/input-otp.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/input-otp.tsx -------------------------------------------------------------------------------- /components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/input.tsx -------------------------------------------------------------------------------- /components/ui/label.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/label.tsx -------------------------------------------------------------------------------- /components/ui/menubar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/menubar.tsx -------------------------------------------------------------------------------- /components/ui/navigation-menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/navigation-menu.tsx -------------------------------------------------------------------------------- /components/ui/pagination.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/pagination.tsx -------------------------------------------------------------------------------- /components/ui/popover.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/popover.tsx -------------------------------------------------------------------------------- /components/ui/progress.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/progress.tsx -------------------------------------------------------------------------------- /components/ui/radio-group.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/radio-group.tsx -------------------------------------------------------------------------------- /components/ui/resizable.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/resizable.tsx -------------------------------------------------------------------------------- /components/ui/scroll-area.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/scroll-area.tsx -------------------------------------------------------------------------------- /components/ui/select.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/select.tsx -------------------------------------------------------------------------------- /components/ui/separator.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/separator.tsx -------------------------------------------------------------------------------- /components/ui/sheet.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/sheet.tsx -------------------------------------------------------------------------------- /components/ui/skeleton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/skeleton.tsx -------------------------------------------------------------------------------- /components/ui/slider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/slider.tsx -------------------------------------------------------------------------------- /components/ui/sonner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/sonner.tsx -------------------------------------------------------------------------------- /components/ui/switch.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/switch.tsx -------------------------------------------------------------------------------- /components/ui/table.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/table.tsx -------------------------------------------------------------------------------- /components/ui/tabs.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/tabs.tsx -------------------------------------------------------------------------------- /components/ui/textarea.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/textarea.tsx -------------------------------------------------------------------------------- /components/ui/toast.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/toast.tsx -------------------------------------------------------------------------------- /components/ui/toaster.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/toaster.tsx -------------------------------------------------------------------------------- /components/ui/toggle-group.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/toggle-group.tsx -------------------------------------------------------------------------------- /components/ui/toggle.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/toggle.tsx -------------------------------------------------------------------------------- /components/ui/tooltip.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/tooltip.tsx -------------------------------------------------------------------------------- /components/ui/use-toast.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/ui/use-toast.ts -------------------------------------------------------------------------------- /components/utility/providers.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/utility/providers.tsx -------------------------------------------------------------------------------- /components/utility/wait-for-hydration.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/components/utility/wait-for-hydration.tsx -------------------------------------------------------------------------------- /db/db.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/db/db.ts -------------------------------------------------------------------------------- /db/migrations/0000_lying_violations.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/db/migrations/0000_lying_violations.sql -------------------------------------------------------------------------------- /db/migrations/meta/0000_snapshot.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/db/migrations/meta/0000_snapshot.json -------------------------------------------------------------------------------- /db/migrations/meta/_journal.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/db/migrations/meta/_journal.json -------------------------------------------------------------------------------- /db/queries/chats.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/db/queries/chats.ts -------------------------------------------------------------------------------- /db/queries/messages.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/db/queries/messages.ts -------------------------------------------------------------------------------- /db/queries/profiles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/db/queries/profiles.ts -------------------------------------------------------------------------------- /db/schema/chats.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/db/schema/chats.ts -------------------------------------------------------------------------------- /db/schema/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/db/schema/index.ts -------------------------------------------------------------------------------- /db/schema/messages.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/db/schema/messages.ts -------------------------------------------------------------------------------- /db/schema/profiles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/db/schema/profiles.ts -------------------------------------------------------------------------------- /drizzle.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/drizzle.config.ts -------------------------------------------------------------------------------- /lib/context/app-context.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/lib/context/app-context.tsx -------------------------------------------------------------------------------- /lib/hooks/use-copy-to-clipboard.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/lib/hooks/use-copy-to-clipboard.tsx -------------------------------------------------------------------------------- /lib/not-diamond/not-diamond-config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/lib/not-diamond/not-diamond-config.ts -------------------------------------------------------------------------------- /lib/not-diamond/select-random-model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/lib/not-diamond/select-random-model.ts -------------------------------------------------------------------------------- /lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/lib/utils.ts -------------------------------------------------------------------------------- /lib/utils/get-cost.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/lib/utils/get-cost.ts -------------------------------------------------------------------------------- /lib/utils/handle-fetch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/lib/utils/handle-fetch.ts -------------------------------------------------------------------------------- /lib/utils/local-storage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/lib/utils/local-storage.ts -------------------------------------------------------------------------------- /license: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/license -------------------------------------------------------------------------------- /next.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/next.config.mjs -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/postcss.config.mjs -------------------------------------------------------------------------------- /prettier.config.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/prettier.config.cjs -------------------------------------------------------------------------------- /public/readme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/public/readme.png -------------------------------------------------------------------------------- /tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/tailwind.config.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/tsconfig.json -------------------------------------------------------------------------------- /types/chat-data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mckaywrigley/ai-router-chat/HEAD/types/chat-data.ts --------------------------------------------------------------------------------