Skip to content

Commit

Permalink
feat(package-lock.json): delete useless dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
terasum committed Sep 19, 2024
1 parent a700c08 commit 40ebfd2
Show file tree
Hide file tree
Showing 18 changed files with 112 additions and 724 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,16 @@
<img src="./docs/images/ui-index.png" width="680"/>
</div>

## 如何使用 Openchat
1. 在设置页面选择OpenChat, 输入API-Key即可


## 如何使用Ollama
1. 安装ollama,参考[ollama](https://ollama.com/)的安装文档。
2. 运行ollama, 可以使用轻量模型 `tinyllama`, 运行命令 `ollama run tinyllama`
<img alt="ollama tinyollama" src="./docs/images/ollama-tinyllama.png"/>
<img alt="ollama tinyollama" src="./docs/images/ollama-tinyllama.png" width="680"/>
3. 配置 openchat, 在设置页面选择 ollama, 模型选择 tinyllama 即可
<img alt="ollama tinyollama" src="./docs/images/ollama-settings.png"/>
<img alt="ollama tinyollama" src="./docs/images/ollama-settings.png" width="680"/>
4. 如果没有你需要的模型,欢迎提交pr。


Expand Down
18 changes: 3 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"prepare": "husky"
},
"dependencies": {
"@hookform/resolvers": "^3.9.0",
"@radix-ui/react-alert-dialog": "^1.1.1",
"@radix-ui/react-avatar": "^1.1.0",
"@radix-ui/react-checkbox": "^1.1.1",
Expand All @@ -39,24 +38,15 @@
"@radix-ui/react-toggle": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.2",
"@reduxjs/toolkit": "^2.2.7",
"@tanstack/query-core": "^5.55.1",
"@tanstack/react-query": "^5.56.1",
"@tauri-apps/api": "^1.2.0",
"@traptitech/markdown-it-katex": "^3.6.0",
"boxicons": "^2.1.4",
"class-variance-authority": "^0.7.0",
"clipboard": "^2.0.11",
"clsx": "^2.1.1",
"cmdk": "1.0.0",
"date-fns": "^3.6.0",
"gpt-tokenizer": "^2.2.1",
"highlight.js": "^11.10.0",
"husky": "^9.1.6",
"immer": "^10.1.1",
"jotai": "^2.9.3",
"jotai-immer": "^0.4.1",
"jotai-tanstack-query": "^0.8.7",
"lodash": "^4.17.21",
"lucide-react": "^0.436.0",
"markdown-it": "^14.1.0",
"markdown-it-highlightjs": "^4.1.0",
Expand All @@ -67,7 +57,6 @@
"react-hook-form": "^7.53.0",
"react-redux": "^9.1.2",
"react-resizable-panels": "^2.1.2",
"react-svg": "^16.1.34",
"redux": "^5.0.1",
"redux-thunk": "^3.1.0",
"tailwind-merge": "^2.5.2",
Expand All @@ -77,10 +66,7 @@
"tauri-plugin-sql-api": "https://github.com/tauri-apps/tauri-plugin-sql",
"tauri-plugin-store-api": "https://github.com/tauri-apps/tauri-plugin-store",
"tauri-plugin-system-info-api": "^2.0.2",
"tauri-plugin-window-state-api": "https://github.com/tauri-apps/tauri-plugin-window-state",
"vaul": "^0.9.1",
"vite-plugin-svgr": "^4.2.0",
"zod": "^3.23.8"
"tauri-plugin-window-state-api": "https://github.com/tauri-apps/tauri-plugin-window-state"
},
"devDependencies": {
"@commitlint/config-conventional": "^19.5.0",
Expand All @@ -94,13 +80,15 @@
"@vitejs/plugin-react": "^4.2.1",
"autoprefixer": "^10.4.20",
"commitlint": "^19.5.0",
"husky": "^9.1.6",
"jsdom": "^25.0.0",
"postcss": "^8.4.41",
"sass-embedded": "^1.77.8",
"tailwindcss": "^3.4.10",
"toml": "^3.0.0",
"typescript": "^5.2.2",
"vite": "^5.3.1",
"vite-plugin-svgr": "^4.2.0",
"vite-plugin-top-level-await": "^1.3.0",
"vitest": "^2.0.5"
}
Expand Down
Loading

0 comments on commit 40ebfd2

Please sign in to comment.