feat(stepfun): add step-3.7-flash model#88082
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 9, 2026, 2:13 AM ET / 06:13 UTC. Summary PR surface: Source +80, Tests +93, Docs +65. Total +238 across 4 files. Reproducibility: not applicable. as a bug reproduction; this is an additive provider model feature. Source inspection shows current main lacks Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Land the additive StepFun model metadata/docs/tests after exact-head CI is green and maintainers either receive lightweight real OpenClaw catalog/inference proof or explicitly accept the request-payload test proof for this provider-catalog update. Do we have a high-confidence way to reproduce the issue? Not applicable as a bug reproduction; this is an additive provider model feature. Source inspection shows current main lacks Is this the best way to solve the issue? Yes for the code shape: the bundled StepFun plugin manifest, provider docs, and focused provider/request-payload tests are the right owner boundary. The remaining uncertainty is proof sufficiency, not a better implementation location. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a780541ea6c5. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +80, Tests +93, Docs +65. Total +238 across 4 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (4 earlier review cycles)
|
|
@lit26 thanks for the PR. ClawSweeper is still waiting on real behavior proof before this can move forward. Useful proof can be a screenshot, short video, terminal output, copied live output, linked artifact, or redacted logs that show the changed behavior after the fix. Please redact private tokens, phone numbers, private endpoints, customer data, and anything else sensitive. Once proof is added to the PR body or a comment, ClawSweeper or a maintainer can re-check it. |
3179016 to
ba5d6cc
Compare
Output was artificially capped at 65536; StepFun docs set max_tokens default to INF, bounded only by the 256K context window. Raise step-3.7-flash maxTokens to 262144 on both stepfun and stepfun-plan, matching contextWindow. Per models.dev anomalyco/models.dev#1903. step-3.5-flash entries unchanged.
Step Plan endpoint bills per subscription plan, not per token, matching the sibling stepfun-plan/step-3.5-flash and step-3.5-flash-2603 entries which already carry zero cost. Standard stepfun/step-3.7-flash keeps its per-token rate. Per models.dev anomalyco/models.dev#1903, whose step-plan providers omit cost entirely.
|
Maintainer fixups complete and land-ready:
Exact-head proof at
Proof gap: no approved StepFun credential was available for direct inference. The emitted request payload is regression-tested against StepFun's official API contract linked in the PR body. Thanks @lit26 for adding the model coverage. |
|
Merged via squash.
|
* feat(stepfun): add step-3.7-flash model and make it default * fix(stepfun): set step-3.7-flash cacheRead cost to 0.04 * fix(stepfun): raise step-3.7-flash maxTokens to context limit Output was artificially capped at 65536; StepFun docs set max_tokens default to INF, bounded only by the 256K context window. Raise step-3.7-flash maxTokens to 262144 on both stepfun and stepfun-plan, matching contextWindow. Per models.dev anomalyco/models.dev#1903. step-3.5-flash entries unchanged. * fix(stepfun): zero step-plan step-3.7-flash cost for plan billing Step Plan endpoint bills per subscription plan, not per token, matching the sibling stepfun-plan/step-3.5-flash and step-3.5-flash-2603 entries which already carry zero cost. Standard stepfun/step-3.7-flash keeps its per-token rate. Per models.dev anomalyco/models.dev#1903, whose step-plan providers omit cost entirely. * docs(changelog): note StepFun 3.7 support * style(stepfun): format provider table * fix(stepfun): forward reasoning effort * fix(stepfun): scope reasoning compat to 3.7 * test(stepfun): keep 3.5 reasoning compat unchanged * fix(stepfun): carry off fallback through agent turns * fix(stepfun): use documented token limit field * fix(stepfun): match chat completions contract * chore(stepfun): keep changelog release-owned --------- Co-authored-by: Tianning Li <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
StepFun released
step-3.7-flash, but OpenClaw's direct StepFun catalogs exposed only the Step 3.5 family. Users could not select the new model through either the Standardstepfunprovider or the subscription-backedstepfun-planprovider.Why This Change Was Made
step-3.7-flashto both official static catalogs while preserving the existing Step 3.5 defaults.systemmessages,max_tokens, no OpenAI-onlystore,stream_options, developer-role, or strict-tool fields.off,minimal,xhigh, andmaxlevels to StepFun's nearest supported effort.User Impact
Users can select
stepfun/step-3.7-flashorstepfun-plan/step-3.7-flash. Existing installations remain on their current Step 3.5 default until the user explicitly switches. OpenClaw advertises text and image input; StepFun's native video input remains outside OpenClaw's current model-input schema.Evidence
0ad970c66111a7974954c85e6f54afcf7248dd6e.run_564f467801fc(leasecbx_99addb986ee6; no secrets, instance role, tailnet, or LAN access):pnpm exec oxfmt --check docs/providers/stepfun.md extensions/stepfun/index.test.ts extensions/stepfun/openclaw.plugin.json src/agents/models-config.providers.stepfun.test.tspnpm test extensions/stepfun/index.test.ts src/agents/models-config.providers.stepfun.test.ts