magpie-junie-auth 0.2.5 → 0.2.6

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/index.mjs +5 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -181,12 +181,15 @@ export async function JuniePlugin(input, options = {}) {
181
181
  provider: {
182
182
  id: PROVIDER,
183
183
  async models(providerModels, { auth } = {}) {
184
+ // gpt-6-luna 真机验证支持图片输入(data URI / URL),
185
+ // 声明 modalities 后 magpie 才会把它列进「识图模型」。
186
+ const modalities = { input: ["text", "image"], output: ["text"] }
184
187
  if (pluginOptions.bridgeUrl) {
185
- return { "junie-lite": { name: "Junie Lite (CLI)", limit: { context: 262144, output: 16384 }, tool_call: true } }
188
+ return { "junie-lite": { name: "Junie Lite (CLI)", limit: { context: 262144, output: 16384 }, tool_call: true, modalities } }
186
189
  }
187
190
  // 直连/桥接都只提供 junie-lite(底层 gpt-6-luna),与其他旧模型无关。
188
191
  return {
189
- "junie-lite": { name: "Junie Lite (GPT-6 Luna)", limit: { context: 262144, output: 16384 }, tool_call: true },
192
+ "junie-lite": { name: "Junie Lite (GPT-6 Luna)", limit: { context: 262144, output: 16384 }, tool_call: true, modalities },
190
193
  }
191
194
  },
192
195
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magpie-junie-auth",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "magpie provider plugin: JetBrains Junie free tier (gpt-6-luna) via direct Responses API or CLI bridge; multi-account with browser PKCE / CLI login reuse",
5
5
  "type": "module",
6
6
  "main": "./index.mjs",