@pasko70/pibo 1.16.1 → 1.16.2

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.
@@ -9,23 +9,58 @@ const QWEN_COMPAT = {
9
9
  thinkingFormat: "qwen",
10
10
  maxTokensField: "max_tokens",
11
11
  };
12
- function qwenModel(id, name, input) {
13
- return {
14
- id,
15
- name,
16
- reasoning: true,
17
- compat: QWEN_COMPAT,
18
- contextWindow: 1_000_000,
19
- maxTokens: 65_536,
20
- cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
21
- input,
22
- };
12
+ const DEEPSEEK_COMPAT = {
13
+ supportsStore: false,
14
+ supportsDeveloperRole: false,
15
+ thinkingFormat: "deepseek",
16
+ maxTokensField: "max_tokens",
17
+ };
18
+ const DASHSCOPE_COMPAT = {
19
+ supportsStore: false,
20
+ supportsDeveloperRole: false,
21
+ maxTokensField: "max_tokens",
22
+ };
23
+ const ZERO_COST = { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 };
24
+ function model(id, name, compat, contextWindow, maxTokens, input, reasoning = true) {
25
+ return { id, name, reasoning, compat, contextWindow, maxTokens, cost: ZERO_COST, input };
26
+ }
27
+ function qwenModel(id, name, input, contextWindow = 1_000_000, maxTokens = 65_536) {
28
+ return model(id, name, QWEN_COMPAT, contextWindow, maxTokens, input);
29
+ }
30
+ function deepseekModel(id, name, contextWindow, maxTokens) {
31
+ return model(id, name, DEEPSEEK_COMPAT, contextWindow, maxTokens, ["text"]);
32
+ }
33
+ function thirdPartyModel(id, name, contextWindow, maxTokens, input, reasoning = true) {
34
+ return model(id, name, DASHSCOPE_COMPAT, contextWindow, maxTokens, input, reasoning);
23
35
  }
24
36
  export const QWEN_TOKEN_PLAN_MODELS = [
37
+ // Qwen Max family
38
+ qwenModel("qwen-max", "Qwen Max", ["text", "image"]),
25
39
  qwenModel("qwen3.7-max", "Qwen3.7 Max", ["text"]),
40
+ qwenModel("qwen3-max", "Qwen3 Max", ["text"]),
41
+ qwenModel("qwen3.6-max-preview", "Qwen3.6 Max Preview", ["text", "image"]),
42
+ // Qwen Plus family
26
43
  qwenModel("qwen3.7-plus", "Qwen3.7 Plus", ["text", "image"]),
27
44
  qwenModel("qwen3.6-plus", "Qwen3.6 Plus", ["text", "image"]),
45
+ qwenModel("qwen3.5-plus", "Qwen3.5 Plus", ["text", "image"]),
46
+ qwenModel("qwen-plus", "Qwen Plus", ["text", "image"]),
47
+ // Qwen Flash family
28
48
  qwenModel("qwen3.6-flash", "Qwen3.6 Flash", ["text", "image"]),
49
+ qwenModel("qwen3.5-flash", "Qwen3.5 Flash", ["text", "image"]),
50
+ qwenModel("qwen-flash", "Qwen Flash", ["text", "image"]),
51
+ // Qwen Coder family
52
+ qwenModel("qwen-coder-plus", "Qwen Coder Plus", ["text"], 131_072, 65_536),
53
+ qwenModel("qwen-coder-turbo", "Qwen Coder Turbo", ["text"], 131_072, 65_536),
54
+ // DeepSeek
55
+ deepseekModel("deepseek-v4-flash", "DeepSeek V4 Flash", 1_000_000, 384_000),
56
+ deepseekModel("deepseek-v4-pro", "DeepSeek V4 Pro", 1_000_000, 384_000),
57
+ deepseekModel("deepseek-v3.2", "DeepSeek V3.2", 163_840, 65_536),
58
+ deepseekModel("deepseek-r1", "DeepSeek R1", 128_000, 32_768),
59
+ // Kimi (Moonshot AI)
60
+ thirdPartyModel("kimi-k2.7-code", "Kimi K2.7 Code", 262_144, 65_536, ["text", "image"]),
61
+ thirdPartyModel("kimi-k2.6", "Kimi K2.6", 262_144, 65_536, ["text", "image"]),
62
+ // GLM (Z.ai)
63
+ thirdPartyModel("glm-5.2", "GLM 5.2", 1_000_000, 131_072, ["text"]),
29
64
  ];
30
65
  function resolveBaseUrl() {
31
66
  const envOverride = process.env.PIBO_QWEN_TOKEN_PLAN_BASE_URL;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pasko70/pibo",
3
- "version": "1.16.1",
3
+ "version": "1.16.2",
4
4
  "type": "module",
5
5
  "workspaces": [
6
6
  "packages/workflows",