| ... | ... | @@ -26,9 +26,6 @@ def agent_provider(): |
| 26 | 26 | models = [] |
| 27 | 27 | for entry in catalog: |
| 28 | 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 | 29 | models.append({ |
| 33 | 30 | "id": model["slug"], "name": model["display_name"], "description": model["description"], |
| 34 | 31 | "hidden": model["visibility"] != "list", |
| ... | ... | @@ -36,17 +33,13 @@ def agent_provider(): |
| 36 | 33 | "effectiveContextWindowPercent": model["effective_context_window_percent"], |
| 37 | 34 | "autoCompactTokenLimit": model["auto_compact_token_limit"], |
| 38 | 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 | 39 | "tools": {"applyPatch": model["apply_patch_tool_type"], "shell": model["shell_type"], |
| 41 | 40 | "webSearch": model["supports_search_tool"], "mode": model["tool_mode"]}, |
| 42 | 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 | 43 | return { |
| 51 | 44 | "version": 1, "name": "Snow Globe", "icon": {"emoji": "❄️", "color": "teal"}, |
| 52 | 45 | "harness": "codex", "harnesses": ["codex", "claude"], |