Skip to content

feat(ai-gateway): place free StepFun model above kilo-auto/free in preferred models - #7312

Merged
chrarnoldus merged 1 commit into
mainfrom
feat/stepfun-preferred-model
Oct 8, 2026
Merged

chrarnoldus merged 1 commit into
mainfrom
feat/stepfun-preferred-model

Conversation

@chrarnoldus

Copy link
Copy Markdown
Contributor

Summary

  • Adds stepfun/step-5-preview-free to the preferred model list, directly above kilo-auto/free. The preferred order is now: kilo-auto/efficient, stepfun/step-5-preview-free, kilo-auto/free, then the admin-configured free models and paid preferred models.
  • The model is also added to the monitored list so it stays consistent with the "monitored = concrete preferred models" rule.
  • The model ID now lives in providers/stepfun.ts as STEP_5_PREVIEW_FREE_MODEL_ID, shared by the kilo-exclusive model definition and the preferred list. models.ts is client-safe and cannot import the server-only exclusive-models module, so the constant lives in the provider file.

Verification

  • preferred-models.test.ts updated for the new order; openrouter-models-config.test.ts gained assertions that the StepFun model sits between kilo-auto/efficient and kilo-auto/free.
  • Ran with the repo's apps/web/.env.test: openrouter-models-config, preferred-models, models, models.client-boundary, and kilo-exclusive-models suites pass (60/60).
  • tsgo --noEmit for packages/web-shared passes; oxfmt --check passes on changed files; git diff --check clean.
  • Broader packages/web-shared/src/lib/ai-gateway run: 1611 passed, 65 failed across 10 suites. All failures are Postgres connection errors (AggregateError / failed inserts) because Postgres is not running in this environment; not run against a DB.

@chrarnoldus chrarnoldus self-assigned this Oct 8, 2026
@kilo-code-bot

kilo-code-bot Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (5 files)
  • apps/web/src/tests/openrouter-models-config.test.ts
  • packages/web-shared/src/lib/ai-gateway/kilo-exclusive-models.ts
  • packages/web-shared/src/lib/ai-gateway/models.ts
  • packages/web-shared/src/lib/ai-gateway/preferred-models.test.ts
  • packages/web-shared/src/lib/ai-gateway/providers/stepfun.ts

Reviewed by deepseek-v4.1-flash · Input: 86.5K · Output: 16.2K · Cached: 1.2M

Review guidance: REVIEW.md from base branch main

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.

2 participants