Skip to content

feat: add native TypeSafe Jev System One support - #7425

Open
aofee wants to merge 1 commit into
Wei-Shaw:mainfrom
aofee:codex/jev-system-one
Open

aofee wants to merge 1 commit into
Wei-Shaw:mainfrom
aofee:codex/jev-system-one

Conversation

@aofee

@aofee aofee commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add TypeSafe as a first-class API-key platform with native POST /v1/systemone support for jev-latest
  • validate and pass through System One noul, choice, and score requests, with model discovery and Composite routing
  • record native token usage with an input-only $0.042/MTok fallback price and channel pricing overrides
  • use the existing account scheduling, concurrency, cooldown, failover, billing, quota, audit, and usage-recording paths
  • expose TypeSafe / Jev in the account, group, channel pricing, quota, filter, and usage interfaces, with English and Chinese documentation

Protocol boundary

This is separate from #7387, which uses TypeSafe only as an internal content-moderation engine. This PR makes Jev available to gateway users through its native System One contract. It does not make Jev compatible with Chat Completions, Responses, Anthropic Messages, or streaming clients.

Error and billing behavior

  • 400 and 422 are returned without retrying another account
  • 401 is treated as an account credential failure
  • 429, 529, network failures, timeouts, and 5xx use the existing cooldown/error-policy and account-failover paths
  • request bodies, upstream error bodies, and credentials are not logged
  • default pricing is $0.042/MTok input and $0 output; channel pricing can override both

Testing

  • backend unit and integration suites
  • System One validation, mock-upstream forwarding, usage, pricing, error-policy, cooldown, and failover tests
  • existing TypeSafe content-moderation regression tests
  • golangci-lint v2
  • frontend ESLint, TypeScript checks, affected Vitest suites, and production build

No real TypeSafe API was called.

Closes #7299

@github-actions

github-actions Bot commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA. ✅
Posted by the CLA Assistant Lite bot.

@aofee
aofee force-pushed the codex/jev-system-one branch from 8fd3d6c to d1ba579 Compare September 20, 2026 12:20
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.

支持 jev 模型

1 participant