Skip to content

Add per-key model blacklist#480

Merged
mylukin merged 1 commit into
mainfrom
codex/api-key-model-blacklist
Jul 6, 2026
Merged

Add per-key model blacklist#480
mylukin merged 1 commit into
mainfrom
codex/api-key-model-blacklist

Conversation

@mylukin

@mylukin mylukin commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add blocked_models to API key schema, stores, migrations, and admin key forms
  • enforce blocked concrete models before direct execution and strip them from lane/alias/fallback chains
  • hide blocked aliases and empty lanes from /v1/models, and cover chat/messages/images/interactions/replay paths

Validation

  • pnpm exec vitest run packages/core/src/routing/route-request.test.ts apps/gateway/src/routes/messages-pipeline.test.ts apps/gateway/src/routes/admin/replay.test.ts
  • pnpm exec vitest run packages/core/src/store/postgres/migrate.test.ts
  • pnpm test
  • pnpm typecheck
  • pnpm lint
  • pnpm build
  • git diff --check

Co-Authored-By: Codex noreply@openai.com

Co-Authored-By: Codex <noreply@openai.com>
@mylukin mylukin merged commit e78c352 into main Jul 6, 2026
3 checks passed
@mylukin mylukin deleted the codex/api-key-model-blacklist branch July 6, 2026 13:57
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