This commit is contained in:
Dustin Loring 2024-12-01 09:42:19 -05:00
parent 1118a4c597
commit 2439e1cffa
4 changed files with 2897 additions and 2877 deletions

View File

@ -255,7 +255,6 @@ export const BaseChat = React.forwardRef<HTMLDivElement, BaseChatProps>(
</button> </button>
</div> </div>
<div className={isModelSettingsCollapsed ? 'hidden' : ''}> <div className={isModelSettingsCollapsed ? 'hidden' : ''}>
<ModelSelector <ModelSelector
key={provider?.name + ':' + modelList.length} key={provider?.name + ':' + modelList.length}

94
package-lock.json generated
View File

@ -8,98 +8,98 @@
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@ai-sdk/anthropic": "^0.0.39", "@ai-sdk/anthropic": "^0.0.39",
"@ai-sdk/cohere": "^1.0.1", "@ai-sdk/cohere": "^1.0.3",
"@ai-sdk/google": "^0.0.52", "@ai-sdk/google": "^0.0.52",
"@ai-sdk/mistral": "^0.0.43", "@ai-sdk/mistral": "^0.0.43",
"@ai-sdk/openai": "^0.0.66", "@ai-sdk/openai": "^0.0.66",
"@codemirror/autocomplete": "^6.17.0", "@codemirror/autocomplete": "^6.18.3",
"@codemirror/commands": "^6.6.0", "@codemirror/commands": "^6.7.1",
"@codemirror/lang-cpp": "^6.0.2", "@codemirror/lang-cpp": "^6.0.2",
"@codemirror/lang-css": "^6.2.1", "@codemirror/lang-css": "^6.3.1",
"@codemirror/lang-html": "^6.4.9", "@codemirror/lang-html": "^6.4.9",
"@codemirror/lang-javascript": "^6.2.2", "@codemirror/lang-javascript": "^6.2.2",
"@codemirror/lang-json": "^6.0.1", "@codemirror/lang-json": "^6.0.1",
"@codemirror/lang-markdown": "^6.2.5", "@codemirror/lang-markdown": "^6.3.1",
"@codemirror/lang-python": "^6.1.6", "@codemirror/lang-python": "^6.1.6",
"@codemirror/lang-sass": "^6.0.2", "@codemirror/lang-sass": "^6.0.2",
"@codemirror/lang-wast": "^6.0.2", "@codemirror/lang-wast": "^6.0.2",
"@codemirror/language": "^6.10.2", "@codemirror/language": "^6.10.6",
"@codemirror/search": "^6.5.6", "@codemirror/search": "^6.5.8",
"@codemirror/state": "^6.4.1", "@codemirror/state": "^6.4.1",
"@codemirror/view": "^6.28.4", "@codemirror/view": "^6.35.0",
"@iconify-json/ph": "^1.1.13", "@iconify-json/ph": "^1.2.1",
"@iconify-json/svg-spinners": "^1.1.2", "@iconify-json/svg-spinners": "^1.2.1",
"@lezer/highlight": "^1.2.0", "@lezer/highlight": "^1.2.1",
"@nanostores/react": "^0.7.2", "@nanostores/react": "^0.7.3",
"@octokit/rest": "^21.0.2", "@octokit/rest": "^21.0.2",
"@octokit/types": "^13.6.1", "@octokit/types": "^13.6.2",
"@openrouter/ai-sdk-provider": "^0.0.5", "@openrouter/ai-sdk-provider": "^0.0.5",
"@radix-ui/react-dialog": "^1.1.1", "@radix-ui/react-dialog": "^1.1.2",
"@radix-ui/react-dropdown-menu": "^2.1.1", "@radix-ui/react-dropdown-menu": "^2.1.2",
"@radix-ui/react-tooltip": "^1.1.4", "@radix-ui/react-tooltip": "^1.1.4",
"@remix-run/cloudflare": "^2.10.2", "@remix-run/cloudflare": "^2.15.0",
"@remix-run/cloudflare-pages": "^2.10.2", "@remix-run/cloudflare-pages": "^2.15.0",
"@remix-run/react": "^2.10.2", "@remix-run/react": "^2.15.0",
"@uiw/codemirror-theme-vscode": "^4.23.0", "@uiw/codemirror-theme-vscode": "^4.23.6",
"@unocss/reset": "^0.61.0", "@unocss/reset": "^0.61.9",
"@webcontainer/api": "1.3.0-internal.10", "@webcontainer/api": "1.3.0-internal.10",
"@xterm/addon-fit": "^0.10.0", "@xterm/addon-fit": "^0.10.0",
"@xterm/addon-web-links": "^0.11.0", "@xterm/addon-web-links": "^0.11.0",
"@xterm/xterm": "^5.5.0", "@xterm/xterm": "^5.5.0",
"ai": "^3.4.9", "ai": "^3.4.33",
"date-fns": "^3.6.0", "date-fns": "^3.6.0",
"diff": "^5.2.0", "diff": "^5.2.0",
"file-saver": "^2.0.5", "file-saver": "^2.0.5",
"framer-motion": "^11.2.12", "framer-motion": "^11.12.0",
"ignore": "^6.0.2", "ignore": "^6.0.2",
"isbot": "^4.1.0", "isbot": "^4.4.0",
"istextorbinary": "^9.5.0", "istextorbinary": "^9.5.0",
"jose": "^5.6.3", "jose": "^5.9.6",
"js-cookie": "^3.0.5", "js-cookie": "^3.0.5",
"jszip": "^3.10.1", "jszip": "^3.10.1",
"nanostores": "^0.10.3", "nanostores": "^0.10.3",
"ollama-ai-provider": "^0.15.2", "ollama-ai-provider": "^0.15.2",
"pnpm": "^9.14.4", "pnpm": "^9.14.4",
"react": "^18.2.0", "react": "^18.3.1",
"react-dom": "^18.2.0", "react-dom": "^18.3.1",
"react-hotkeys-hook": "^4.5.0", "react-hotkeys-hook": "^4.6.1",
"react-markdown": "^9.0.1", "react-markdown": "^9.0.1",
"react-resizable-panels": "^2.0.20", "react-resizable-panels": "^2.1.7",
"react-toastify": "^10.0.5", "react-toastify": "^10.0.6",
"rehype-raw": "^7.0.0", "rehype-raw": "^7.0.0",
"rehype-sanitize": "^6.0.0", "rehype-sanitize": "^6.0.0",
"remark-gfm": "^4.0.0", "remark-gfm": "^4.0.0",
"remix-island": "^0.2.0", "remix-island": "^0.2.0",
"remix-utils": "^7.6.0", "remix-utils": "^7.7.0",
"shiki": "^1.9.1", "shiki": "^1.24.0",
"unist-util-visit": "^5.0.0" "unist-util-visit": "^5.0.0"
}, },
"devDependencies": { "devDependencies": {
"@blitz/eslint-plugin": "0.1.0", "@blitz/eslint-plugin": "0.1.0",
"@cloudflare/workers-types": "^4.20240620.0", "@cloudflare/workers-types": "^4.20241127.0",
"@jridgewell/sourcemap-codec": "^1.4.15", "@jridgewell/sourcemap-codec": "^1.5.0",
"@remix-run/dev": "^2.10.0", "@remix-run/dev": "^2.15.0",
"@rollup/plugin-inject": "^5.0.5", "@rollup/plugin-inject": "^5.0.5",
"@types/diff": "^5.2.1", "@types/diff": "^5.2.3",
"@types/file-saver": "^2.0.7", "@types/file-saver": "^2.0.7",
"@types/js-cookie": "^3.0.6", "@types/js-cookie": "^3.0.6",
"@types/react": "^18.2.20", "@types/react": "^18.3.12",
"@types/react-dom": "^18.2.7", "@types/react-dom": "^18.3.1",
"fast-glob": "^3.3.2", "fast-glob": "^3.3.2",
"husky": "9.1.7", "husky": "9.1.7",
"is-ci": "^3.0.1", "is-ci": "^3.0.1",
"node-fetch": "^3.3.2", "node-fetch": "^3.3.2",
"prettier": "^3.3.2", "prettier": "^3.4.1",
"sass-embedded": "^1.80.3", "sass-embedded": "^1.81.0",
"typescript": "^5.5.2", "typescript": "^5.7.2",
"unified": "^11.0.5", "unified": "^11.0.5",
"unocss": "^0.61.3", "unocss": "^0.61.9",
"vite": "^5.3.6", "vite": "^5.4.11",
"vite-plugin-node-polyfills": "^0.22.0", "vite-plugin-node-polyfills": "^0.22.0",
"vite-plugin-optimize-css-modules": "^1.1.0", "vite-plugin-optimize-css-modules": "^1.1.0",
"vite-tsconfig-paths": "^4.3.2", "vite-tsconfig-paths": "^4.3.2",
"vitest": "^2.0.1", "vitest": "^2.1.6",
"wrangler": "^3.63.2", "wrangler": "^3.91.0",
"zod": "^3.23.8" "zod": "^3.23.8"
}, },
"engines": { "engines": {
@ -22300,9 +22300,9 @@
} }
}, },
"node_modules/svelte": { "node_modules/svelte": {
"version": "5.2.12", "version": "5.3.0",
"resolved": "https://registry.npmjs.org/svelte/-/svelte-5.2.12.tgz", "resolved": "https://registry.npmjs.org/svelte/-/svelte-5.3.0.tgz",
"integrity": "sha512-lcrJVygO05nzQkgRLxaz3qd0kamyhujfpCxalzzKabJUueVrnpc0bhHgR2hUa/335XvOHO39wtc79C72g+5ftw==", "integrity": "sha512-R9v8vAlW/bO94S7QdBJMYveMyI8gMqNnGOtEVLPveNVws+CEiQHn8BNWrtIIpkB28IXLnmjV2HaRTJz31XJmIw==",
"license": "MIT", "license": "MIT",
"peer": true, "peer": true,
"dependencies": { "dependencies": {

View File

@ -28,98 +28,98 @@
}, },
"dependencies": { "dependencies": {
"@ai-sdk/anthropic": "^0.0.39", "@ai-sdk/anthropic": "^0.0.39",
"@ai-sdk/cohere": "^1.0.1", "@ai-sdk/cohere": "^1.0.3",
"@ai-sdk/google": "^0.0.52", "@ai-sdk/google": "^0.0.52",
"@ai-sdk/mistral": "^0.0.43", "@ai-sdk/mistral": "^0.0.43",
"@ai-sdk/openai": "^0.0.66", "@ai-sdk/openai": "^0.0.66",
"@codemirror/autocomplete": "^6.17.0", "@codemirror/autocomplete": "^6.18.3",
"@codemirror/commands": "^6.6.0", "@codemirror/commands": "^6.7.1",
"@codemirror/lang-cpp": "^6.0.2", "@codemirror/lang-cpp": "^6.0.2",
"@codemirror/lang-css": "^6.2.1", "@codemirror/lang-css": "^6.3.1",
"@codemirror/lang-html": "^6.4.9", "@codemirror/lang-html": "^6.4.9",
"@codemirror/lang-javascript": "^6.2.2", "@codemirror/lang-javascript": "^6.2.2",
"@codemirror/lang-json": "^6.0.1", "@codemirror/lang-json": "^6.0.1",
"@codemirror/lang-markdown": "^6.2.5", "@codemirror/lang-markdown": "^6.3.1",
"@codemirror/lang-python": "^6.1.6", "@codemirror/lang-python": "^6.1.6",
"@codemirror/lang-sass": "^6.0.2", "@codemirror/lang-sass": "^6.0.2",
"@codemirror/lang-wast": "^6.0.2", "@codemirror/lang-wast": "^6.0.2",
"@codemirror/language": "^6.10.2", "@codemirror/language": "^6.10.6",
"@codemirror/search": "^6.5.6", "@codemirror/search": "^6.5.8",
"@codemirror/state": "^6.4.1", "@codemirror/state": "^6.4.1",
"@codemirror/view": "^6.28.4", "@codemirror/view": "^6.35.0",
"@iconify-json/ph": "^1.1.13", "@iconify-json/ph": "^1.2.1",
"@iconify-json/svg-spinners": "^1.1.2", "@iconify-json/svg-spinners": "^1.2.1",
"@lezer/highlight": "^1.2.0", "@lezer/highlight": "^1.2.1",
"@nanostores/react": "^0.7.2", "@nanostores/react": "^0.7.3",
"@octokit/rest": "^21.0.2", "@octokit/rest": "^21.0.2",
"@octokit/types": "^13.6.1", "@octokit/types": "^13.6.2",
"@openrouter/ai-sdk-provider": "^0.0.5", "@openrouter/ai-sdk-provider": "^0.0.5",
"@radix-ui/react-dialog": "^1.1.1", "@radix-ui/react-dialog": "^1.1.2",
"@radix-ui/react-dropdown-menu": "^2.1.1", "@radix-ui/react-dropdown-menu": "^2.1.2",
"@radix-ui/react-tooltip": "^1.1.4", "@radix-ui/react-tooltip": "^1.1.4",
"@remix-run/cloudflare": "^2.10.2", "@remix-run/cloudflare": "^2.15.0",
"@remix-run/cloudflare-pages": "^2.10.2", "@remix-run/cloudflare-pages": "^2.15.0",
"@remix-run/react": "^2.10.2", "@remix-run/react": "^2.15.0",
"@uiw/codemirror-theme-vscode": "^4.23.0", "@uiw/codemirror-theme-vscode": "^4.23.6",
"@unocss/reset": "^0.61.0", "@unocss/reset": "^0.61.9",
"@webcontainer/api": "1.3.0-internal.10", "@webcontainer/api": "1.3.0-internal.10",
"@xterm/addon-fit": "^0.10.0", "@xterm/addon-fit": "^0.10.0",
"@xterm/addon-web-links": "^0.11.0", "@xterm/addon-web-links": "^0.11.0",
"@xterm/xterm": "^5.5.0", "@xterm/xterm": "^5.5.0",
"ai": "^3.4.9", "ai": "^3.4.33",
"date-fns": "^3.6.0", "date-fns": "^3.6.0",
"diff": "^5.2.0", "diff": "^5.2.0",
"file-saver": "^2.0.5", "file-saver": "^2.0.5",
"framer-motion": "^11.2.12", "framer-motion": "^11.12.0",
"ignore": "^6.0.2", "ignore": "^6.0.2",
"isbot": "^4.1.0", "isbot": "^4.4.0",
"istextorbinary": "^9.5.0", "istextorbinary": "^9.5.0",
"jose": "^5.6.3", "jose": "^5.9.6",
"js-cookie": "^3.0.5", "js-cookie": "^3.0.5",
"jszip": "^3.10.1", "jszip": "^3.10.1",
"nanostores": "^0.10.3", "nanostores": "^0.10.3",
"ollama-ai-provider": "^0.15.2", "ollama-ai-provider": "^0.15.2",
"pnpm": "^9.14.4", "pnpm": "^9.14.4",
"react": "^18.2.0", "react": "^18.3.1",
"react-dom": "^18.2.0", "react-dom": "^18.3.1",
"react-hotkeys-hook": "^4.5.0", "react-hotkeys-hook": "^4.6.1",
"react-markdown": "^9.0.1", "react-markdown": "^9.0.1",
"react-resizable-panels": "^2.0.20", "react-resizable-panels": "^2.1.7",
"react-toastify": "^10.0.5", "react-toastify": "^10.0.6",
"rehype-raw": "^7.0.0", "rehype-raw": "^7.0.0",
"rehype-sanitize": "^6.0.0", "rehype-sanitize": "^6.0.0",
"remark-gfm": "^4.0.0", "remark-gfm": "^4.0.0",
"remix-island": "^0.2.0", "remix-island": "^0.2.0",
"remix-utils": "^7.6.0", "remix-utils": "^7.7.0",
"shiki": "^1.9.1", "shiki": "^1.24.0",
"unist-util-visit": "^5.0.0" "unist-util-visit": "^5.0.0"
}, },
"devDependencies": { "devDependencies": {
"@blitz/eslint-plugin": "0.1.0", "@blitz/eslint-plugin": "0.1.0",
"@cloudflare/workers-types": "^4.20240620.0", "@cloudflare/workers-types": "^4.20241127.0",
"@jridgewell/sourcemap-codec": "^1.4.15", "@jridgewell/sourcemap-codec": "^1.5.0",
"@remix-run/dev": "^2.10.0", "@remix-run/dev": "^2.15.0",
"@rollup/plugin-inject": "^5.0.5", "@rollup/plugin-inject": "^5.0.5",
"@types/diff": "^5.2.1", "@types/diff": "^5.2.3",
"@types/file-saver": "^2.0.7", "@types/file-saver": "^2.0.7",
"@types/js-cookie": "^3.0.6", "@types/js-cookie": "^3.0.6",
"@types/react": "^18.2.20", "@types/react": "^18.3.12",
"@types/react-dom": "^18.2.7", "@types/react-dom": "^18.3.1",
"fast-glob": "^3.3.2", "fast-glob": "^3.3.2",
"husky": "9.1.7", "husky": "9.1.7",
"is-ci": "^3.0.1", "is-ci": "^3.0.1",
"node-fetch": "^3.3.2", "node-fetch": "^3.3.2",
"prettier": "^3.3.2", "prettier": "^3.4.1",
"sass-embedded": "^1.80.3", "sass-embedded": "^1.81.0",
"typescript": "^5.5.2", "typescript": "^5.7.2",
"unified": "^11.0.5", "unified": "^11.0.5",
"unocss": "^0.61.3", "unocss": "^0.61.9",
"vite": "^5.3.6", "vite": "^5.4.11",
"vite-plugin-node-polyfills": "^0.22.0", "vite-plugin-node-polyfills": "^0.22.0",
"vite-plugin-optimize-css-modules": "^1.1.0", "vite-plugin-optimize-css-modules": "^1.1.0",
"vite-tsconfig-paths": "^4.3.2", "vite-tsconfig-paths": "^4.3.2",
"vitest": "^2.0.1", "vitest": "^2.1.6",
"wrangler": "^3.63.2", "wrangler": "^3.91.0",
"zod": "^3.23.8" "zod": "^3.23.8"
}, },
"resolutions": { "resolutions": {

File diff suppressed because it is too large Load Diff