MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / ProviderPreset

Class ProviderPreset

eval/run_compare.py:66–89  ·  view source on GitHub ↗

Bundle of provider/model/base-url defaults applied to both agents. A preset selects: - ``model`` : the backing model name passed to both agents - ``clawcodex_provider`` : value for ``--provider`` on the clawcodex CLI (must already

Source from the content-addressed store, hash-verified

64
65@dataclass(frozen=True)
66class ProviderPreset:
67 """Bundle of provider/model/base-url defaults applied to both agents.
68
69 A preset selects:
70 - ``model`` : the backing model name passed to both agents
71 - ``clawcodex_provider`` : value for ``--provider`` on the clawcodex CLI
72 (must already exist in ``~/.clawcodex/config.json``)
73 - ``openclaude_provider`` : provider hint for the openclaude wrapper
74 ("openai" routes through CLAUDE_CODE_USE_OPENAI=1)
75 - ``openclaude_base_url`` : OPENAI_BASE_URL override used when the
76 provider speaks the OpenAI-compatible API
77 (e.g. DeepSeek, GLM). Empty string means
78 "leave whatever is in the environment alone".
79
80 Individual ``--model`` / ``--clawcodex-provider`` / etc. flags override
81 per-field on top of the preset.
82 """
83
84 name: str
85 model: str
86 clawcodex_provider: str
87 openclaude_provider: str
88 openclaude_base_url: str
89 description: str
90
91
92PROVIDER_PRESETS: dict[str, ProviderPreset] = {

Callers 1

run_compare.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected