fix(openai-chat): forward caller-selected service tier - #1512
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
✅ Deterministic PR hygiene checks passed. |
⏳ DRAFT
What to do
Review readiness checklist
1/4 boxes ticked. This PR stays in draft until every box above is ticked. |
070eca7 to
a353594
Compare
|
Rebased the fork branch onto current |
a353594 to
ab72f54
Compare
|
Rebased and force-with-lease pushed onto current dev@cbbfdd8773e68a5dc2391ddeb32f33a225373c1a; new head is ab72f54. Fresh local proof: Chat/service-tier focused suite 50/50, 84 assertions; typecheck, privacy scan, and diff check passed. The PR description is updated; keeping Draft pending maintainer choice/review, with #1521 carrying the same serializer fix. |
|
The narrow serializer change is valid and appropriately scoped: However, #1521 contains the same serializer change together with the provider/model capability resolver and catalog/runtime gating. Keeping both open creates two competing landing paths for the same line. I recommend treating #1512 as the minimal fallback only: leave it draft while #1521 is reviewed, and close it as superseded if #1521 is accepted. If the broader capability PR is rejected or split, this two-file patch is a reasonable standalone candidate after exact-head CI and readiness completion. |
Summary
parsed.options.serviceTiervalue when serializing OpenAI-compatible Chat Completions requests.service_tier: "priority"on the outbound/chat/completionsbody.dev@cbbfdd8773e68a5dc2391ddeb32f33a225373c1a; current head:ab72f5441e1b.Refs #1504
Refs #1436
Verification
bun test --isolate --max-concurrency 1 tests/openai-chat-hardening.test.ts tests/service-tier-capability.test.ts— 50 passed, 0 failed, 84 assertions.bun run typecheck— passed on the rebased head.bun run privacy:scan— passed.git diff --check— passed.bun run testresult is not claimed; the suite contains current baseline/environment failures unrelated to this narrow serializer change.Checklist
devcommit.Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
All CI tests are green on my local testing.
I pushed my PR to the latest dev commit.
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.