@knyazevai/dsh 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/cordis.patch.yml +35 -0
  2. package/package.json +1 -1
package/cordis.patch.yml CHANGED
@@ -10,6 +10,18 @@
10
10
  apiKeyEnv: KNYAZEV_AI_API_KEY
11
11
  api: openai-completions
12
12
  baseURL: https://knyazevai.work/v1
13
+ # 20 retries on transient failures, applied to every model of this
14
+ # provider. mode: always would retry until success (unbounded); normal
15
+ # bounds it to transient codes with a hard cap of 20 attempts.
16
+ retryPolicy:
17
+ mode: normal
18
+ maxRetries: 20
19
+ retryableCodes:
20
+ - RATE_LIMIT
21
+ - SERVER
22
+ - TIMEOUT
23
+ - TRANSPORT
24
+ - EMPTY_RESPONSE
13
25
  compat:
14
26
  thinkingFormat: qwen
15
27
  supportsReasoningEffort: false
@@ -35,3 +47,26 @@
35
47
  name: MiniMax 2.7
36
48
  contextWindow: 204800
37
49
  maxTokens: 40000
50
+
51
+ # Compaction policy for huge Knyazev contexts. The harness code fix behind
52
+ # maxSummarizationInputTokens lives in dsh-compaction-basic (harness commit
53
+ # 078d3db591) and ships only with a harness build that contains it; this layer
54
+ # carries just the knyazev-scoped policy. The global budget stays 0 (replay the
55
+ # whole region = old behavior) so non-Knyazev providers are unaffected; only
56
+ # knyazev-ai routes replay bounded input in small fast passes. compactionRetries
57
+ # and maxOverflowRetries are bumped so a slow gateway prefill gets more chances.
58
+ - id: compaction-basic
59
+ config:
60
+ maxSummarizationInputTokens: 0
61
+ compactionRetries: 2
62
+ maxOverflowRetries: 2
63
+ modelPolicies:
64
+ - provider: knyazev-ai
65
+ model: deepseek-v4-flash
66
+ maxSummarizationInputTokens: 131072
67
+ - provider: knyazev-ai
68
+ model: kimi-2.6
69
+ maxSummarizationInputTokens: 131072
70
+ - provider: knyazev-ai
71
+ model: minimax-2.7
72
+ maxSummarizationInputTokens: 131072
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knyazevai/dsh",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "DeepSeek Harness plugin: Knyazev AI models with thinking and effort",
5
5
  "type": "module",
6
6
  "license": "MIT",