Skip to content

fix: add deepseek-v4-flash and deepseek-v4-pro to model pricing table#447

Merged
pancacake merged 1 commit into
HKUDS:devfrom
Starfie1d1272:fix/add-deepseek-v4-pricing
May 8, 2026
Merged

fix: add deepseek-v4-flash and deepseek-v4-pro to model pricing table#447
pancacake merged 1 commit into
HKUDS:devfrom
Starfie1d1272:fix/add-deepseek-v4-pricing

Conversation

@Starfie1d1272

Copy link
Copy Markdown
Contributor

Description

Add deepseek-v4-flash and deepseek-v4-pro to the hardcoded model pricing
table. These models were missing, causing cost calculations to fall back to
gpt-4o-mini pricing instead of the correct DeepSeek rates.

Pricing from https://api-docs.deepseek.com/quick_start/pricing/ (per 1K tokens):

Model Input Output
deepseek-v4-flash $0.00014 $0.00028
deepseek-v4-pro $0.000435 $0.00087

This is a stopgap fix. A proper Settings UI for configurable model pricing is
tracked in #446.

Changes

  • deeptutor/agents/research/utils/token_tracker.py — 2 new pricing entries (+2 lines)

Test plan

  • DeepSeek v4 model cost displays match the API pricing page

Pricing per DeepSeek API docs (per 1K tokens):
- deepseek-v4-flash: $0.00014 input, $0.00028 output
- deepseek-v4-pro: $0.000435 input, $0.00087 output
@pancacake pancacake changed the base branch from main to dev May 8, 2026 17:52
@pancacake pancacake merged commit f1572e8 into HKUDS:dev May 8, 2026
7 checks passed
@Starfie1d1272 Starfie1d1272 deleted the fix/add-deepseek-v4-pricing branch May 8, 2026 20:24
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