Repository navigation
feat(ai): switch chat model to qwen3.8-flash (#325) - #326
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The chat widget's hard-coded
deepseek-v4-flashis failing at the OpenCode gateway (404 inference_failedon/inference/openai/v1/chat/completions— workspace loge6eede50-1df7-4336-a658-374572f6ebc0, while the same key returns 200s for MiMo-V2.6-Flash). The model is still listed in/zen/v1/models, so this is the deepseek route breaking upstream, not our key or code.Switches
MODEL_IDtoqwen3.8-flash(official Zen docs:@ai-sdk/openai-compatibleat the same/zen/v1/chat/completionsendpoint, $0.15 in / $0.47 out per 1M — verified LISTED live with the production key) and movesTOKEN_COST_PER_1Mto 0.47 so the $0.50/h abuse budget keeps charging honestly.cost.test.tsexpectations updated.Fixes #325
Type of Change
How Has This Been Tested?
npm run lint,npm run typecheckclean;npm test734/734 across 103 files (incl. updatedcost.test.ts)Checklist
Screenshots (if applicable)