├── .eslintrc.json ├── .gitignore ├── .husky └── pre-commit ├── .prettierignore ├── .prettierrc ├── LICENSE ├── README.md ├── components.json ├── next.config.js ├── package.json ├── postcss.config.js ├── src ├── app │ ├── (app) │ │ ├── assistant │ │ │ └── page.tsx │ │ ├── finetune │ │ │ └── page.tsx │ │ ├── layout.tsx │ │ └── playground │ │ │ └── page.tsx │ ├── api │ │ └── chat │ │ │ └── route.ts │ ├── apple-touch-icon.png │ ├── favicon.ico │ ├── globals.css │ ├── layout.tsx │ └── page.tsx ├── components │ ├── api-key-dialog.tsx │ ├── chat-message.tsx │ ├── chat-messages-list.tsx │ ├── chat-panel.tsx │ ├── dynamic-textarea.tsx │ ├── empty-screen.tsx │ ├── external-link.tsx │ ├── footer.tsx │ ├── icons.tsx │ ├── message-role.tsx │ ├── mobile-setting.tsx │ ├── mobile-sidebar.tsx │ ├── model-context.tsx │ ├── model-select.tsx │ ├── model-settings.tsx │ ├── navbar.tsx │ ├── number-setting.tsx │ ├── pg-mode-select.tsx │ ├── playground.tsx │ ├── prompt-form.tsx │ ├── sidebar.tsx │ ├── system-prompt-input.tsx │ └── ui │ │ ├── avatar.tsx │ │ ├── button.tsx │ │ ├── dialog.tsx │ │ ├── form.tsx │ │ ├── input.tsx │ │ ├── label.tsx │ │ ├── select.tsx │ │ ├── sheet.tsx │ │ ├── slider.tsx │ │ ├── textarea.tsx │ │ └── tooltip.tsx └── lib │ ├── config.ts │ ├── hooks │ ├── use-cmd-enter-submit.tsx │ └── use-local-storage.ts │ ├── types.ts │ └── utils.ts ├── tailwind.config.ts └── tsconfig.json /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": ["next/core-web-vitals", "prettier"] 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | . "$(dirname -- "$0")/_/husky.sh" 3 | 4 | npx lint-staged 5 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .next -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/.prettierrc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/README.md -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/components.json -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/postcss.config.js -------------------------------------------------------------------------------- /src/app/(app)/assistant/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/app/(app)/assistant/page.tsx -------------------------------------------------------------------------------- /src/app/(app)/finetune/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/app/(app)/finetune/page.tsx -------------------------------------------------------------------------------- /src/app/(app)/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/app/(app)/layout.tsx -------------------------------------------------------------------------------- /src/app/(app)/playground/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/app/(app)/playground/page.tsx -------------------------------------------------------------------------------- /src/app/api/chat/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/app/api/chat/route.ts -------------------------------------------------------------------------------- /src/app/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/app/apple-touch-icon.png -------------------------------------------------------------------------------- /src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/app/favicon.ico -------------------------------------------------------------------------------- /src/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/app/globals.css -------------------------------------------------------------------------------- /src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/app/layout.tsx -------------------------------------------------------------------------------- /src/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/app/page.tsx -------------------------------------------------------------------------------- /src/components/api-key-dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/api-key-dialog.tsx -------------------------------------------------------------------------------- /src/components/chat-message.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/chat-message.tsx -------------------------------------------------------------------------------- /src/components/chat-messages-list.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/chat-messages-list.tsx -------------------------------------------------------------------------------- /src/components/chat-panel.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/chat-panel.tsx -------------------------------------------------------------------------------- /src/components/dynamic-textarea.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/dynamic-textarea.tsx -------------------------------------------------------------------------------- /src/components/empty-screen.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/empty-screen.tsx -------------------------------------------------------------------------------- /src/components/external-link.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/external-link.tsx -------------------------------------------------------------------------------- /src/components/footer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/footer.tsx -------------------------------------------------------------------------------- /src/components/icons.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/icons.tsx -------------------------------------------------------------------------------- /src/components/message-role.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/message-role.tsx -------------------------------------------------------------------------------- /src/components/mobile-setting.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/mobile-setting.tsx -------------------------------------------------------------------------------- /src/components/mobile-sidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/mobile-sidebar.tsx -------------------------------------------------------------------------------- /src/components/model-context.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/model-context.tsx -------------------------------------------------------------------------------- /src/components/model-select.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/model-select.tsx -------------------------------------------------------------------------------- /src/components/model-settings.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/model-settings.tsx -------------------------------------------------------------------------------- /src/components/navbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/navbar.tsx -------------------------------------------------------------------------------- /src/components/number-setting.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/number-setting.tsx -------------------------------------------------------------------------------- /src/components/pg-mode-select.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/pg-mode-select.tsx -------------------------------------------------------------------------------- /src/components/playground.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/playground.tsx -------------------------------------------------------------------------------- /src/components/prompt-form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/prompt-form.tsx -------------------------------------------------------------------------------- /src/components/sidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/sidebar.tsx -------------------------------------------------------------------------------- /src/components/system-prompt-input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/system-prompt-input.tsx -------------------------------------------------------------------------------- /src/components/ui/avatar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/ui/avatar.tsx -------------------------------------------------------------------------------- /src/components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/ui/button.tsx -------------------------------------------------------------------------------- /src/components/ui/dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/ui/dialog.tsx -------------------------------------------------------------------------------- /src/components/ui/form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/ui/form.tsx -------------------------------------------------------------------------------- /src/components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/ui/input.tsx -------------------------------------------------------------------------------- /src/components/ui/label.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/ui/label.tsx -------------------------------------------------------------------------------- /src/components/ui/select.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/ui/select.tsx -------------------------------------------------------------------------------- /src/components/ui/sheet.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/ui/sheet.tsx -------------------------------------------------------------------------------- /src/components/ui/slider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/ui/slider.tsx -------------------------------------------------------------------------------- /src/components/ui/textarea.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/ui/textarea.tsx -------------------------------------------------------------------------------- /src/components/ui/tooltip.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/components/ui/tooltip.tsx -------------------------------------------------------------------------------- /src/lib/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/lib/config.ts -------------------------------------------------------------------------------- /src/lib/hooks/use-cmd-enter-submit.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/lib/hooks/use-cmd-enter-submit.tsx -------------------------------------------------------------------------------- /src/lib/hooks/use-local-storage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/lib/hooks/use-local-storage.ts -------------------------------------------------------------------------------- /src/lib/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/lib/types.ts -------------------------------------------------------------------------------- /src/lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/src/lib/utils.ts -------------------------------------------------------------------------------- /tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/tailwind.config.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenw310/open-llm-playground/HEAD/tsconfig.json --------------------------------------------------------------------------------