dsh-cmtoken-oauth 1.5.0 → 1.5.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.
- package/lib/index.js +2 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -134,7 +134,8 @@ async function refreshToken(refresh) {
|
|
|
134
134
|
// 根据模型名称关键词匹配「输入(上下文)/ 输出(最大生成)」规格。
|
|
135
135
|
// 规格优先级:已知关键词匹配 > 发现接口自带值 > 通用默认值。
|
|
136
136
|
const MODEL_SPECS = [
|
|
137
|
-
// DeepSeek V4 系列:deepseek-v4-pro
|
|
137
|
+
// DeepSeek V4 系列:deepseek-v4-pro(1M)/ deepseek-v4-flash(中台仅 512k)
|
|
138
|
+
{ match: (n) => n.includes('deepseek') && n.includes('v4') && n.includes('flash'), contextWindow: 524_288, maxTokens: 393_216 },
|
|
138
139
|
{ match: (n) => n.includes('deepseek') && n.includes('v4'), contextWindow: 1_048_576, maxTokens: 393_216 },
|
|
139
140
|
// MiniMax-M3(支持图片)
|
|
140
141
|
{ match: (n) => n.includes('minimax') && /m3/.test(n), contextWindow: 1_048_576, maxTokens: 131_072 },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-cmtoken-oauth",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "DeepSeek Harness 插件:在 DSH 设置页一键完成广东移动 MaaS(cmtoken)的 OAuth 2.0 Device Grant + PKCE 认证,自动发现模型并写入 llm-pi-ai provider 配置(视觉模型自动声明图片输入模态);粘贴识图让纯文本模型直接收图(Qwen3.8 / Qwen3.x / Kimi K2.x / MiniMax M3 自动识读),另有 cmtoken_read_image 工具与可选的 cmtoken-vision 包装路由;凭据安全保存并自动续期。零第三方运行时依赖。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|