Repository navigation
VFG-104 文を書く段の順に Claude Sonnet 5.5 を足す - #64
Merged
Merged
Conversation
文を書く段は頭の良いモデルを優先し、Gemini 4 の次に Sonnet を置く。ほかの段は今の順のまま。
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.
概要
台本の文を書く段 (語り・Shorts の場面・テロップ) は、頭の良いモデルを優先します。段ごとにモデルの順を設定で持てるようにし、文を書く段の順に Claude Sonnet 5.5 を足します。
変更内容
llm.stageModelOrderを追加 (段:select・facts・outline・write・review)。書いていない段はllm.modelOrderを使うgemini-4-hydrogen→claude-sonnet-5-5→gemini-3.8-flash→claude-haiku-5-5gemini-4-hydrogen→gemini-3.8-flash→claude-haiku-5-5claude-sonnet-5-5) を追加。単価は入力 $2・出力 $10 / 100 万トークン。effort はmediumを明示し、thinking・サンプリングの値は送らない。モデルごとの単価で概算の費用をログに出すmaxCallsPerRunを 18 → 20 (最悪で 4 + 4 × 3 = 16 回 + JSON モードの送り直しの余裕)llm(model・models・tokens) は変更なし動作確認
pnpm lintpnpm typecheckpnpm test(外部の API は呼ばず、fetchをモック。文を書く段で Gemini 4 が 503 なら Sonnet が呼ばれる、ほかの段では呼ばれない、ANTHROPIC_API_KEYがなければ Claude の 2 つを飛ばす)pnpm format:checkリスクの確認
.env*、キー、トークン) を含めていない人が確認すること
ANTHROPIC_API_KEYを workflow の env に渡す変更は、前の変更で報告したとおり別の PR補足
thinking: {"type": "disabled"}とthinking.budget_tokensが 400 になることを確認したため、thinking は指定していません。