fix(codex): Sakana fugu のツール/モデルカタログ未設定エラーを修正#56
Merged
Conversation
codex を Sakana fugu で起動すると2つの API エラーで動かなかったのを修正: - `Invalid value: 'image_generation'`(param: tools): fugu は image_generation / apps ツール未対応のため [features] で無効化する。 - `/models` 取得失敗(missing field `models`): codex が Sakana の /v1/models を カタログとして解釈しようとして失敗していた。公式 fugu リポジトリの fugu.json を 同梱し model_catalog_json で参照する(context_window=1M 等のメタも入る)。 `fnox exec -- codex exec` で PONG 応答・両エラー消失を確認済み。
既存スタイル(1ブロック1行)に合わせ、会社PC/エラー文/起動手順などの 冗長な説明コメントを削減。設定値の変更はなし。
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.
概要
#55 で Sakana を既定にしたが、
codexを fugu で起動すると 2 つの API エラーで実際には動かなかったので修正する。エラーと対処
Invalid value: 'image_generation'. Supported values are: 'function' and 'custom'.(param: tools)image_generation/appsツール未対応。[features]で両方falseにし、codex が送らないようにした。failed to refresh available models: ... missing field 'models'/v1/models(OpenAI 形式{data:[...]})を自前のカタログ形式として解釈しようとして失敗していた。公式 fugu リポジトリ(SakanaAI/fugu)のconfigs/files/fugu.jsonをdot_codex/fugu.jsonとして同梱し、model_catalog_json = "~/.codex/fugu.json"で参照する(context_window=1M等のメタも入る)。補足
curl … | bash)は codex のバージョン固定・API キーの平文~/.codex/.env保存・config.toml直接編集・ランチャ導入を行い、mise / fnox / chezmoi と衝突するため使わず、必要な config 部品だけ取り込んだ。~展開は codex 側で効くことを実機確認(カタログがロードされ/models取得が止まる)。テスト
fnox exec -- codex exec --sandbox read-only "Reply with exactly: PONG"で PONG 応答・両エラー消失を確認。codex doctorがconfig.toml parse ok/model: fugu · sakana。