@magpie-community/opencode-qoder-auth 0.2.46 → 0.2.47
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 +8 -0
- package/index.mjs +11 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -208,6 +208,14 @@ app's Fast from 2026-10-12:
|
|
|
208
208
|
|
|
209
209
|
Every model speaks chat completions (`@ai-sdk/openai-compatible`).
|
|
210
210
|
|
|
211
|
+
Every model a site ships also says, either way, whether it takes images:
|
|
212
|
+
`attachment` and `modalities.input` are set on every `config` entry, image
|
|
213
|
+
or no image. A kind left out is not "text only" to magpie but "the vendor
|
|
214
|
+
didn't say", and magpie then falls back to models.dev's vote by bare model
|
|
215
|
+
ID — where a same-named model of another vendor may take images, so this
|
|
216
|
+
one gets sent them. QwenWork's three models and Qoder CN's Lite shipped no
|
|
217
|
+
image key; since 0.2.47 they say text alone.
|
|
218
|
+
|
|
211
219
|
## Qoder CN
|
|
212
220
|
|
|
213
221
|
`qoder-cn` is for accounts on [qoder.cn](https://qoder.cn), the China site.
|
package/index.mjs
CHANGED
|
@@ -674,10 +674,20 @@ async function fetchListing(site, cred) {
|
|
|
674
674
|
}
|
|
675
675
|
|
|
676
676
|
function configModel(m) {
|
|
677
|
+
const images = !!m.images
|
|
677
678
|
return {
|
|
678
679
|
name: m.name,
|
|
679
680
|
limit: { context: m.context ?? 0, output: 0 },
|
|
680
|
-
|
|
681
|
+
// Said either way, image or no image. A kind left out is not "text only"
|
|
682
|
+
// to magpie: it is "the vendor didn't say", and magpie then falls back to
|
|
683
|
+
// models.dev's vote by bare model id — where a same-named model of
|
|
684
|
+
// another vendor may take images, so a text-only one here is sent them
|
|
685
|
+
// (the same mistake codearts 0.2.3 made, fixed there in 0.2.4). The list
|
|
686
|
+
// a site ships is what magpie has before anyone signs in, and what it
|
|
687
|
+
// keeps when a listing can't be fetched (provider.models falls back to
|
|
688
|
+
// it), so those models are the ones most likely to be asked for an image.
|
|
689
|
+
attachment: images,
|
|
690
|
+
modalities: { input: images ? ["text", "image"] : ["text"], output: ["text"] },
|
|
681
691
|
...(m.efforts?.length ? { reasoning: true, variants: Object.fromEntries(m.efforts.map((e) => [e, { reasoningEffort: e }])) } : {}),
|
|
682
692
|
tool_call: true,
|
|
683
693
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magpie-community/opencode-qoder-auth",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.47",
|
|
4
4
|
"description": "Qoder and QwenWork (千问办公) subscriptions in OpenCode and magpie: qoder.com, qoder.cn, gateway.qwenwork.cn and the enterprise flagship (VPC)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.mjs",
|