Skip to content

Commit 6a532b3

Browse files
committed
Use real DeepSeek V4 model IDs (deepseek-v4-pro / deepseek-v4-flash)
The previous release exposed `deepseek-v4` and `deepseek-v3` as the V4 model IDs in the dropdown, but those aren't accepted by the DeepSeek API — calls returned 4xx and notes silently failed. The actual API-accepted IDs are `deepseek-v4-pro` (1.6T/49B active, flagship) and `deepseek-v4-flash` (284B/13B active, fast+cheap). Both support a 1M context window and a 384K max-output cap. The legacy `deepseek-chat` / `deepseek-reasoner` aliases stay in the list for backward compatibility — DeepSeek deprecates them on 2026-07-24, after which they continue to map to v4-flash (non-thinking and thinking). _MODEL_MAX_COMPLETION updated from a placeholder 8K cap to the correct 384K cap so the chunk planner doesn't truncate long notes.
1 parent 2530119 commit 6a532b3

3 files changed

Lines changed: 16 additions & 12 deletions

File tree

electron/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "auto-note",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "AutoNote — lecture notes generator from Canvas recordings",
55
"homepage": "https://github.com/nodeeeeee/Auto-Note",
66
"author": {

electron/renderer/app.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,11 +1140,14 @@ const CONSTANTS_DEF = [
11401140
['Gemini 2.5 Pro','gemini-2.5-pro'],['Gemini 2.5 Flash','gemini-2.5-flash'],
11411141
['Gemini 2.5 Flash Lite','gemini-2.5-flash-lite'],['Gemini 2.0 Flash','gemini-2.0-flash'],
11421142
// ── DeepSeek ────────────────────────────────────────────────────────
1143-
// `deepseek-chat` is an alias that DeepSeek points at the current
1144-
// latest non-reasoning model (V4 as of 2026-04). `deepseek-v4` is the
1145-
// pinned alias if you want to lock in V4 specifically.
1146-
['DeepSeek V4 (chat)','deepseek-chat'],['DeepSeek V4 pinned','deepseek-v4'],
1147-
['DeepSeek V3','deepseek-v3'],['DeepSeek R1 (reasoning)','deepseek-reasoner'],
1143+
// V4 ships in two sizes — flash (284B/13B active, fast+cheap) and pro
1144+
// (1.6T/49B active, flagship). Both have a 1M context window and a
1145+
// 384K max output. The legacy aliases deepseek-chat / deepseek-reasoner
1146+
// are deprecated on 2026-07-24 and currently point at v4-flash
1147+
// (non-thinking and thinking modes respectively).
1148+
['DeepSeek V4 Pro ★','deepseek-v4-pro'],['DeepSeek V4 Flash','deepseek-v4-flash'],
1149+
['DeepSeek chat (legacy alias)','deepseek-chat'],
1150+
['DeepSeek reasoner (legacy alias)','deepseek-reasoner'],
11481151
// ── xAI Grok ────────────────────────────────────────────────────────
11491152
['Grok 3','grok-3'],['Grok 3 mini','grok-3-mini'],
11501153
// ── Mistral ─────────────────────────────────────────────────────────
@@ -1164,7 +1167,7 @@ const CONSTANTS_DEF = [
11641167
['Gemini 2.5 Flash','gemini-2.5-flash'],['Gemini 2.5 Flash Lite','gemini-2.5-flash-lite'],
11651168
['Gemini 2.0 Flash','gemini-2.0-flash'],
11661169
// ── DeepSeek ────────────────────────────────────────────────────────
1167-
['DeepSeek V4 (chat)','deepseek-chat'],['DeepSeek V4 pinned','deepseek-v4'],
1170+
['DeepSeek V4 Flash','deepseek-v4-flash'],['DeepSeek V4 Pro','deepseek-v4-pro'],
11681171
// ── xAI / Mistral ───────────────────────────────────────────────────
11691172
['Grok 3 mini','grok-3-mini'],['Mistral Small','mistral-small-latest'],
11701173
]],

note_generation.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -552,11 +552,12 @@ def _translate(text: str, lang: str) -> str:
552552
"gpt-5.2": 128000,
553553
"o3": 100000,
554554
"o4-mini": 100000,
555-
# DeepSeek V4 / V3 / R1 share an 8k default output cap on the public API.
556-
"deepseek-chat": 8192,
557-
"deepseek-v4": 8192,
558-
"deepseek-v3": 8192,
559-
"deepseek-reasoner": 8192,
555+
# DeepSeek V4 (Pro + Flash) share a 384K max-output cap on the public
556+
# API; legacy deepseek-chat / deepseek-reasoner alias to v4-flash.
557+
"deepseek-v4-pro": 384000,
558+
"deepseek-v4-flash": 384000,
559+
"deepseek-chat": 384000,
560+
"deepseek-reasoner": 384000,
560561
}
561562

562563

0 commit comments

Comments
 (0)