fix(ai): correct DeepSeek V4 pricing metadata

closes #3910
This commit is contained in:
Mario Zechner
2026-04-29 22:56:01 +02:00
parent 43848e74ff
commit ae81deb4c3
3 changed files with 9 additions and 8 deletions

View File

@@ -4,6 +4,7 @@
### Fixed ### Fixed
- Fixed DeepSeek V4 Flash and V4 Pro pricing metadata to match current official rates ([#3910](https://github.com/badlogic/pi-mono/issues/3910)).
- Fixed DeepSeek prompt cache hits to be tracked from `prompt_cache_hit_tokens` in OpenAI-compatible usage responses ([#3880](https://github.com/badlogic/pi-mono/issues/3880)). - Fixed DeepSeek prompt cache hits to be tracked from `prompt_cache_hit_tokens` in OpenAI-compatible usage responses ([#3880](https://github.com/badlogic/pi-mono/issues/3880)).
## [0.70.6] - 2026-04-28 ## [0.70.6] - 2026-04-28

View File

@@ -1063,7 +1063,7 @@ async function generateModels() {
cost: { cost: {
input: 0.14, input: 0.14,
output: 0.28, output: 0.28,
cacheRead: 0.028, cacheRead: 0.0028,
cacheWrite: 0, cacheWrite: 0,
}, },
contextWindow: 1000000, contextWindow: 1000000,
@@ -1079,9 +1079,9 @@ async function generateModels() {
reasoning: true, reasoning: true,
input: ["text"], input: ["text"],
cost: { cost: {
input: 1.74, input: 0.435,
output: 3.48, output: 0.87,
cacheRead: 0.145, cacheRead: 0.003625,
cacheWrite: 0, cacheWrite: 0,
}, },
contextWindow: 1000000, contextWindow: 1000000,

View File

@@ -2908,7 +2908,7 @@ export const MODELS = {
cost: { cost: {
input: 0.14, input: 0.14,
output: 0.28, output: 0.28,
cacheRead: 0.028, cacheRead: 0.0028,
cacheWrite: 0, cacheWrite: 0,
}, },
contextWindow: 1000000, contextWindow: 1000000,
@@ -2924,9 +2924,9 @@ export const MODELS = {
reasoning: true, reasoning: true,
input: ["text"], input: ["text"],
cost: { cost: {
input: 1.74, input: 0.435,
output: 3.48, output: 0.87,
cacheRead: 0.145, cacheRead: 0.003625,
cacheWrite: 0, cacheWrite: 0,
}, },
contextWindow: 1000000, contextWindow: 1000000,