[PR #316] [MERGED] refactor: 重构模型配置,可通过模板创建新的模型配置 #722

Closed
opened 2026-03-02 03:41:28 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/codexu/note-gen/pull/316
Author: @codexu
Created: 6/30/2025
Status: Merged
Merged: 6/30/2025
Merged by: @codexu

Base: devHead: refactor-setting-ai


📝 Commits (10+)

  • 398f22e feat: 增加模型模板选择
  • 682be1f feat: aiType 改为 primaryModel
  • 3409a88 refactor: 重写模型编辑逻辑
  • 3c92a00 refactor: 检测 AI 可用性
  • 6535c11 refactor: 模型选择
  • d392c8a feat: 处理无配置情况
  • 24aa8ab refactor: 移除 Gemini 方案,使用兼容 openai 链接代替
  • 04a21a3 release: v0.18.3
  • 73f4f25 fix: 移动端 settings config 错误
  • 0f8b9b1 feat: 设置默认模型,主要模型增加可选择

📊 Changes

32 files changed (+923 additions, -1342 deletions)

View changed files

📝 messages/en.json (+12 -13)
📝 messages/ja.json (+12 -8)
📝 messages/zh.json (+12 -8)
📝 package.json (+0 -1)
📝 pnpm-lock.yaml (+2 -176)
📝 src-tauri/tauri.conf.json (+1 -1)
📝 src/app/core/article/custom-toolbar/continue.tsx (+8 -4)
📝 src/app/core/article/custom-toolbar/eraser.tsx (+2 -2)
📝 src/app/core/article/custom-toolbar/mark.tsx (+3 -3)
📝 src/app/core/article/custom-toolbar/polish.tsx (+3 -3)
📝 src/app/core/article/custom-toolbar/question.tsx (+3 -3)
📝 src/app/core/article/custom-toolbar/translation.tsx (+6 -10)
📝 src/app/core/record/chat/chat-header.tsx (+28 -4)
📝 src/app/core/record/chat/chat-input.tsx (+7 -7)
📝 src/app/core/record/chat/model-select.tsx (+6 -15)
📝 src/app/core/record/mark/control-image.tsx (+2 -2)
📝 src/app/core/record/mark/control-scan.tsx (+2 -2)
src/app/core/setting/ai/ai-check.tsx (+0 -38)
src/app/core/setting/ai/check.tsx (+109 -0)
src/app/core/setting/ai/create.tsx (+103 -0)

...and 12 more files

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/codexu/note-gen/pull/316 **Author:** [@codexu](https://github.com/codexu) **Created:** 6/30/2025 **Status:** ✅ Merged **Merged:** 6/30/2025 **Merged by:** [@codexu](https://github.com/codexu) **Base:** `dev` ← **Head:** `refactor-setting-ai` --- ### 📝 Commits (10+) - [`398f22e`](https://github.com/codexu/note-gen/commit/398f22ebd2e9da762d4ac0ce48e2b9c420d70977) feat: 增加模型模板选择 - [`682be1f`](https://github.com/codexu/note-gen/commit/682be1f40aec701942b30f31397abcc7ed52447b) feat: aiType 改为 primaryModel - [`3409a88`](https://github.com/codexu/note-gen/commit/3409a889ceeaef12ef71bebbdf2f68622864c6d2) refactor: 重写模型编辑逻辑 - [`3c92a00`](https://github.com/codexu/note-gen/commit/3c92a0073a2fbdc68b116d0a4f9def1468b08852) refactor: 检测 AI 可用性 - [`6535c11`](https://github.com/codexu/note-gen/commit/6535c11742dee551cc8ce9ea54a13772a4bfb89e) refactor: 模型选择 - [`d392c8a`](https://github.com/codexu/note-gen/commit/d392c8aae42ec8e4943f43a74728fa658ca0eeda) feat: 处理无配置情况 - [`24aa8ab`](https://github.com/codexu/note-gen/commit/24aa8ab6b0d1ff2d50dd2e9b43667525c4f047ff) refactor: 移除 Gemini 方案,使用兼容 openai 链接代替 - [`04a21a3`](https://github.com/codexu/note-gen/commit/04a21a339c5c6477a0d84dc7fa1c0e3671e0766a) release: v0.18.3 - [`73f4f25`](https://github.com/codexu/note-gen/commit/73f4f2553ac58595520969a0d1d5da658bccdfd0) fix: 移动端 settings config 错误 - [`0f8b9b1`](https://github.com/codexu/note-gen/commit/0f8b9b1da24b795c252e504dad9aa9ac3a0f97df) feat: 设置默认模型,主要模型增加可选择 ### 📊 Changes **32 files changed** (+923 additions, -1342 deletions) <details> <summary>View changed files</summary> 📝 `messages/en.json` (+12 -13) 📝 `messages/ja.json` (+12 -8) 📝 `messages/zh.json` (+12 -8) 📝 `package.json` (+0 -1) 📝 `pnpm-lock.yaml` (+2 -176) 📝 `src-tauri/tauri.conf.json` (+1 -1) 📝 `src/app/core/article/custom-toolbar/continue.tsx` (+8 -4) 📝 `src/app/core/article/custom-toolbar/eraser.tsx` (+2 -2) 📝 `src/app/core/article/custom-toolbar/mark.tsx` (+3 -3) 📝 `src/app/core/article/custom-toolbar/polish.tsx` (+3 -3) 📝 `src/app/core/article/custom-toolbar/question.tsx` (+3 -3) 📝 `src/app/core/article/custom-toolbar/translation.tsx` (+6 -10) 📝 `src/app/core/record/chat/chat-header.tsx` (+28 -4) 📝 `src/app/core/record/chat/chat-input.tsx` (+7 -7) 📝 `src/app/core/record/chat/model-select.tsx` (+6 -15) 📝 `src/app/core/record/mark/control-image.tsx` (+2 -2) 📝 `src/app/core/record/mark/control-scan.tsx` (+2 -2) ➖ `src/app/core/setting/ai/ai-check.tsx` (+0 -38) ➕ `src/app/core/setting/ai/check.tsx` (+109 -0) ➕ `src/app/core/setting/ai/create.tsx` (+103 -0) _...and 12 more files_ </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 03:41:28 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/note-gen#722
No description provided.