Skip to content

feat(ai-gateway): add direct Qwen3.7 Plus model#3655

Merged
chrarnoldus merged 2 commits into
mainfrom
feat/ai-gateway-qwen37-plus
Jun 2, 2026
Merged

feat(ai-gateway): add direct Qwen3.7 Plus model#3655
chrarnoldus merged 2 commits into
mainfrom
feat/ai-gateway-qwen37-plus

Conversation

@lambertjosh
Copy link
Copy Markdown
Contributor

@lambertjosh lambertjosh commented Jun 2, 2026

Summary

  • Register qwen/qwen3.7-plus as a public Alibaba-direct model alongside Qwen3.7 Max.
  • Add multimodal and reasoning metadata plus Alibaba International tiered pricing for standard input, output, explicit cache reads, and explicit cache writes.
  • Cover direct routing and discounted pricing behavior, including the 256K long-context boundary.

Verification

  • Not manually tested; this is a gateway model registration and pricing-only change with no visual flow.

Visual Changes

N/A

Reviewer Notes

@kilo-code-bot
Copy link
Copy Markdown
Contributor

kilo-code-bot Bot commented Jun 2, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Executive Summary

Incremental review confirms no new issues — the PR correctly registers qwen/qwen3.7-plus as a public Alibaba-direct model with tiered pricing (≤256K / >256K), consistent 0.65 discount math, correct tier boundary at TOKENS_256K = 262144, and adequate test coverage for all pricing paths.

Files Reviewed (3 files)
  • apps/web/src/lib/ai-gateway/providers/qwen.ts — model definition, tiered pricing, alibabaDirectModels registration
  • apps/web/src/lib/ai-gateway/processUsage.calculatKiloExclusiveCost.test.ts — pricing unit tests for ≤256K, >256K, cache, and boundary conditions
  • apps/web/src/lib/ai-gateway/models.test.ts — routing and isAlibabaDirectModel tests

Fix these issues in Kilo Cloud


Reviewed by claude-sonnet-4.6 · 561,074 tokens

Review guidance: REVIEW.md from base branch feat/auto-balanced-qwen37-max

@lambertjosh lambertjosh force-pushed the feat/ai-gateway-qwen37-plus branch from 8f499e4 to 029a098 Compare June 2, 2026 04:36
@lambertjosh lambertjosh changed the base branch from feat/auto-balanced-qwen37-max to main June 2, 2026 04:37
@lambertjosh
Copy link
Copy Markdown
Contributor Author

image

@lambertjosh lambertjosh requested a review from chrarnoldus June 2, 2026 04:40
@chrarnoldus chrarnoldus self-assigned this Jun 2, 2026
@chrarnoldus chrarnoldus merged commit 6c51d67 into main Jun 2, 2026
12 checks passed
@chrarnoldus chrarnoldus deleted the feat/ai-gateway-qwen37-plus branch June 2, 2026 13:59
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