feat: add qwen3.5 flash model template#6787
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #6787 +/- ##
==========================================
+ Coverage 15.82% 15.84% +0.01%
==========================================
Files 3998 3998
Lines 328179 328128 -51
==========================================
+ Hits 51933 51983 +50
+ Misses 270350 270244 -106
- Partials 5896 5901 +5
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6991694dcc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "model_name": "${@template.placeholders.target-model-name}", | ||
| "pricing": { | ||
| "completion": "0.000008", | ||
| "completion": "0.000002", |
There was a problem hiding this comment.
Preserve thinking-mode completion pricing
When clients use qwen-plus with thinking enabled, this flat completion rate is what token usage aggregation reads (internal/apps/ai-proxy/handlers/handler_token_usage/aggregate.go:203-204) and applies to all output tokens (aggregate.go:177-178). The official Aliyun pricing table for qwen-plus still lists 2 CNY/M for non-thinking output but 8 CNY/M for thinking output in the ≤128K tier (https://help.aliyun.com/zh/model-studio/model-pricing), while this template still advertises enable_thinking; lowering the rate to 0.000002 will under-report/under-charge thinking calls by 4x. Keep the thinking-mode rate or add mode-specific pricing before changing this value.
Useful? React with 👍 / 👎.
6991694 to
dc74b8b
Compare
What this PR does / why we need it:
Which issue(s) this PR fixes:
Specified Reviewers:
/assign @your-reviewer
ChangeLog
Need cherry-pick to release versions?