| ... | @@ -26,9 +26,6 @@ def agent_provider(): | ... | @@ -26,9 +26,6 @@ def agent_provider(): |
| 26 | models = [] | 26 | models = [] |
| 27 | for entry in catalog: | 27 | for entry in catalog: |
| 28 | model = {**base, **entry} | 28 | model = {**base, **entry} |
| 29 | reasoning = {"summaries": model["supports_reasoning_summary_parameter"]} | | |
| 30 | if model["default_reasoning_level"] != "none": | | |
| 31 | reasoning.update(levels=model["supported_reasoning_levels"], default=model["default_reasoning_level"]) | | |
| 32 | models.append({ | 29 | models.append({ |
| 33 | "id": model["slug"], "name": model["display_name"], "description": model["description"], | 30 | "id": model["slug"], "name": model["display_name"], "description": model["description"], |
| 34 | "hidden": model["visibility"] != "list", | 31 | "hidden": model["visibility"] != "list", |
| ... | @@ -36,17 +33,13 @@ def agent_provider(): | ... | @@ -36,17 +33,13 @@ def agent_provider(): |
| 36 | "effectiveContextWindowPercent": model["effective_context_window_percent"], | 33 | "effectiveContextWindowPercent": model["effective_context_window_percent"], |
| 37 | "autoCompactTokenLimit": model["auto_compact_token_limit"], | 34 | "autoCompactTokenLimit": model["auto_compact_token_limit"], |
| 38 | "inputModalities": model["input_modalities"], | 35 | "inputModalities": model["input_modalities"], |
| 39 | "reasoning": reasoning, | 36 | "reasoning": {"levels": model["supported_reasoning_levels"], |
| | 37 | "default": model["default_reasoning_level"], |
| | 38 | "summaries": model["supports_reasoning_summary_parameter"]}, |
| 40 | "tools": {"applyPatch": model["apply_patch_tool_type"], "shell": model["shell_type"], | 39 | "tools": {"applyPatch": model["apply_patch_tool_type"], "shell": model["shell_type"], |
| 41 | "webSearch": model["supports_search_tool"], "mode": model["tool_mode"]}, | 40 | "webSearch": model["supports_search_tool"], "mode": model["tool_mode"]}, |
| 42 | "truncation": model["truncation_policy"], "verbosity": model["support_verbosity"], | 41 | "truncation": model["truncation_policy"], "verbosity": model["support_verbosity"], |
| 43 | }) | 42 | }) |
| 44 | if model["default_reasoning_level"] == "none": | | |
| 45 | # The discovery effort enum excludes the harness's "none" value. | | |
| 46 | models[-1]["harnessOverrides"] = {"codex": {"catalogEntry": { | | |
| 47 | "default_reasoning_level": "none", | | |
| 48 | "supported_reasoning_levels": model["supported_reasoning_levels"], | | |
| 49 | }}} | | |
| 50 | return { | 43 | return { |
| 51 | "version": 1, "name": "Snow Globe", "icon": {"emoji": "❄️", "color": "teal"}, | 44 | "version": 1, "name": "Snow Globe", "icon": {"emoji": "❄️", "color": "teal"}, |
| 52 | "harness": "codex", "harnesses": ["codex", "claude"], | 45 | "harness": "codex", "harnesses": ["codex", "claude"], |