feat(codex): Sakana AI を既定プロバイダに追加#55
Merged
Merged
Conversation
GPT を解約したため、この PC では Sakana AI(fugu) を codex の既定モデルにする。 - dot_codex/config.toml: model=fugu / model_provider=sakana を既定にし、 [model_providers.sakana] と [profiles.fugu]/[profiles.fugu-ultra] を追加 - dot_config/fnox/config.toml: SAKANA_API_KEY を age 暗号化で追加 - API キーは fnox 管理。fnox activate でシェルに載せて起動する - 会社 PC は managed config が上書きする想定(会社 PC で codex doctor 要確認)
b883cd1 to
5f5eb9b
Compare
fnox が自動生成・追記する dot_config/fnox/config.toml は vp の書式と ブレて CI(vp check) が落ちるため、fmt.ignorePatterns に追加する。
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.
概要
GPT を解約したため、codex の既定モデルを Sakana AI (fugu) にする。
変更
dot_codex/config.toml: 既定をmodel=fugu/model_provider=sakana/model_reasoning_effort=highに。[model_providers.sakana](https://api.sakana.ai/v1/env_key=SAKANA_API_KEY/wire_api=responses)と[profiles.fugu]/[profiles.fugu-ultra]を追加。dot_config/fnox/config.toml:SAKANA_API_KEYを age 暗号化で追加。使い方
SAKANA_API_KEYを環境に load)した状態でcodexを起動 → Sakana fugu。codex -p fugu-ultraで推論サマリ対応の上位モデル。気をつけるポイント
config.local.tomlを読まない(バイナリ文字列・ソース検索・実挙動で確認)。会社 PC の LLM Gateway は managed config(/etc/codex/managed_config.tomlか MDM)が user config を上書きする想定。会社 PC でcodex doctorの resolved provider が gateway か要確認。もし上書きされない場合は profile での出し分け(config.toml.tmpl)に切り替える。codex doctorでconfig.toml parse ok/model: fugu · sakana/ エンドポイント到達(HTTP 401 = キーで認証成立)まで確認済み。影響範囲