Repository navigation
feat(tui): おすすめプリセット(品質下限つき最安モデル)と共有モデルの取り違え修正 - #62
Open
yukihamada wants to merge 3 commits into
Open
yukihamada wants to merge 3 commits into
yukihamada wants to merge 3 commits into
Conversation
- おすすめ役割を追加し、品質下限を満たす最安モデルへ自動で追従させる - 同じモデルに解決する複数役割を、選択時に消さないようにする - 選択中の役割を保持し、矢印巡回と表示が別役割を取り違えないようにする - 重なった model.json 保存を直列化し、古い状態が後勝ちするのを防ぐ
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目的
モデル選択に「おすすめ」役割を足し、品質下限を満たす最安モデルへカタログ更新・価格変更に追随させる。あわせて、同じモデルに解決する複数役割を扱えるようにする。
変更
model-presets.ts:recommended(seedcheap、pick: cheapest、context 1,000,000 / output 32,768 下限)を追加。alias・-cache・tier課金・tool calling非対応・小型contextは除外。dialog-model.tsx: 自動更新の説明を役割ごとに出すpresetUpdateLabelを追加。local.tsx:presetとしてエージェント別に保持(同じモデルに解決する役割を巡回・表示で取り違えない)。selectPresetが他役割のfavoriteを消さないよう修正。model.jsonの保存を直列化(重なった書き込みで古い状態が後勝ちするのを防ぐ)。検証
bun turbo typecheck --filter=@sente-ai/tui: 成功bun test test/cli/tui/model-presets.test.tsx test/util/model-presets.test.ts: 31 pass / 0 failtest/cli/tui/全体: 91 pass / 3 fail(失敗3件は変更前から同じで本差分由来ではない)oxlint: 警告9件・エラー0件(変更前と同数)