feat(codex): config を template 化しマシン固有の既定を上書き可能に#64
Merged
Conversation
4c3db05 to
175ce69
Compare
Codex 0.134.0+ で top-level `profile = "..."` の既定指定と `[profiles.*]` インラインテーブルが廃止されたため、profile を別ファイル形式へ移行する。 - config.toml を config.toml.tmpl 化。既定は fugu のまま、chezmoi の [data] codexDefault / codexExtraProviders が定義されたマシンでのみ 既定モデルと追加プロバイダを上書きできるようにした(値はリポに載せない)。 - fugu / fugu-ultra を新方式の <name>.config.toml として分離。 `codex -p fugu` / `codex -p fugu-ultra` で明示選択する。
175ce69 to
2d0b772
Compare
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.
概要
Codex 0.134.0+ で top-level
profile = "..."の既定指定と[profiles.*]インラインテーブルが廃止されたため、profile を別ファイル形式へ移行する。あわせてconfig.tomlを chezmoi template 化し、マシン固有の既定モデル/追加プロバイダを上書きできるようにした。変更点
config.toml→config.toml.tmpl: 既定は fugu のまま。chezmoi の[data]にcodexDefault/codexExtraProvidersが定義されたマシンでのみ、既定モデルと追加プロバイダを上書きできる。マシン固有の値はリポには載せず~/.config/chezmoi/chezmoi.toml(各マシンローカル)で持つ。fugu.config.toml/fugu-ultra.config.tomlを新規追加: 新方式の<name>.config.tomlとして分離。codex -p fugu/codex -p fugu-ultraで明示選択する。背景
これまで
[profiles.*]インラインで profile を定義していたが、Codex 0.134.0+ ではロードエラー(legacy profile config is no longer supported)になる。新方式では$CODEX_HOME/<name>.config.tomlを置き--profile <name>で base config にオーバーレイする。検証
codex doctor: config ✓ loaded / parse ok-p fugu/-p fugu-ultraすべて--strict-configでモデル解決を確認