Skip to content

fix: always use system messages for StepFun chat models - #252

Merged
ZouR-Ma merged 1 commit into
mainfrom
fix/stepfun-system-role
Oct 15, 2026
Merged

ZouR-Ma merged 1 commit into
mainfrom
fix/stepfun-system-role

Conversation

@ZouR-Ma

@ZouR-Ma ZouR-Ma commented Oct 15, 2026

Copy link
Copy Markdown
Collaborator

Step reasoning models could send the application prompt with the developer role because the generic Chat Completions compatibility defaults assume it is supported. Set supportsDeveloperRole: false throughout Step model discovery and normalization so Step chat requests consistently use system, including custom models and stale models.json entries. Preserve other compatibility flags and caller-owned model data.

Validation:

  • 36 tests passed in step-provider.test.ts and model-runtime-modify-models-compat.test.ts, including request-body assertions for domestic, overseas, and custom Step endpoints.
  • pnpm run check passed, including formatting, lint, type checking, architecture checks, and the browser smoke gate.

@ZouR-Ma
ZouR-Ma merged commit 396dbce into main Oct 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant