opencode-magpie-plugin 0.3.1 → 0.3.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.
- package/README.md +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -55,7 +55,7 @@ OpenCode V2
|
|
|
55
55
|
|
|
56
56
|
```jsonc
|
|
57
57
|
{
|
|
58
|
-
"plugins": ["opencode-magpie-plugin@0.3.
|
|
58
|
+
"plugins": ["opencode-magpie-plugin@0.3.2"]
|
|
59
59
|
}
|
|
60
60
|
```
|
|
61
61
|
|
|
@@ -123,7 +123,7 @@ Routing group(例如 `group/auto`)会跨多个服务路由,因此不按 `o
|
|
|
123
123
|
|
|
124
124
|
本机模式先检查网关根路径的 `name: "magpie"`,再请求 `/v1/models`。远程模式直接请求配置的 API baseURL 下的 `models`,不探测站点根路径,以兼容只暴露 API 的反向代理。请求携带 `X-Magpie-Prices: 1` 读取可用的网关价格扩展。
|
|
125
125
|
|
|
126
|
-
目录映射保留模型的上下文窗口、最大输出、输入输出模态和 reasoning
|
|
126
|
+
目录映射保留模型的上下文窗口、最大输出、输入输出模态和 reasoning 档位。网关未提供有效上下文窗口时,默认使用 256K(256,000 tokens)。仅发现聊天目录;重复的无 provider 前缀别名、图片生成或其他非聊天专用模型不会注册为聊天模型。
|
|
127
127
|
|
|
128
128
|
思考强度读取新版 `reasoning_levels`,并兼容已安装版本常见的 `supported_reasoning_levels`(`{ effort }` 对象或字符串列表)。只有网关实际声明的档位才会出现,可在 OpenCode 的模型变体控件中选择,或使用 `provider/model#high` 这样的引用。`default` 保留服务默认行为,不额外生成档位;网关未提供档位时不会凭模型名称猜测。
|
|
129
129
|
|
package/dist/index.mjs
CHANGED
|
@@ -426,7 +426,7 @@ const buildInventory = (rows, baseURL, options = {}) => {
|
|
|
426
426
|
name: displayName(row.display_name ?? modelID),
|
|
427
427
|
cost,
|
|
428
428
|
limit: {
|
|
429
|
-
context: row.context_window ||
|
|
429
|
+
context: row.context_window || 256e3,
|
|
430
430
|
output: row.max_output_tokens || 32e3
|
|
431
431
|
},
|
|
432
432
|
modalities: row.modalities,
|
package/package.json
CHANGED