@magpie-community/opencode-workbuddy-auth 0.2.9 → 0.2.10
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 +6 -0
- package/index.mjs +11 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -329,6 +329,12 @@ provider settings in magpie, off by default (#430). When it is on:
|
|
|
329
329
|
|
|
330
330
|
The price list is read again at most once a minute for requests.
|
|
331
331
|
|
|
332
|
+
The switch gives its label and description in magpie's other languages
|
|
333
|
+
(`labels`, `descriptions`: Chinese, Traditional Chinese, Japanese, German),
|
|
334
|
+
and says `filtersModels`, so while it is on magpie says under the models
|
|
335
|
+
that the list is filtered (#590). Both are magpie's own fields; an older
|
|
336
|
+
magpie shows the English words and no note.
|
|
337
|
+
|
|
332
338
|
## Credits in magpie
|
|
333
339
|
|
|
334
340
|
magpie's usage card shows the account's credits from the resource summary.
|
package/index.mjs
CHANGED
|
@@ -3387,6 +3387,17 @@ function makePlugin(site) {
|
|
|
3387
3387
|
key: FREE_ONLY,
|
|
3388
3388
|
label: "Free models only",
|
|
3389
3389
|
description: `Lists only the models ${site.name} serves at no cost, and turns away a request for any other here instead of sending it, so no credits are spent. A model free only at night counts as paid.`,
|
|
3390
|
+
// the same words in magpie's other languages, and that the list
|
|
3391
|
+
// leaves models out while it is on (plugins#590); magpie's own
|
|
3392
|
+
// fields, which an older magpie and OpenCode leave alone
|
|
3393
|
+
labels: { zh: "仅免费模型", "zh-TW": "僅免費模型", ja: "無料モデルのみ", de: "Nur kostenlose Modelle" },
|
|
3394
|
+
descriptions: {
|
|
3395
|
+
zh: `只列出 ${site.name} 免费提供的模型;其他模型的请求在这里就被拒绝、不会发出,因此不消耗积分。只在夜间免费的模型按付费算。`,
|
|
3396
|
+
"zh-TW": `只列出 ${site.name} 免費提供的模型;其他模型的請求在這裡就被拒絕、不會送出,因此不消耗積分。只在夜間免費的模型以付費計。`,
|
|
3397
|
+
ja: `${site.name} が無料で提供するモデルだけを表示し、ほかのモデルへのリクエストは送信せずここで断るので、クレジットを消費しません。夜間だけ無料のモデルは有料として扱います。`,
|
|
3398
|
+
de: `Listet nur die Modelle, die ${site.name} kostenlos anbietet, und weist eine Anfrage an jedes andere hier ab, statt sie zu senden, sodass keine Credits verbraucht werden. Ein Modell, das nur nachts kostenlos ist, gilt als kostenpflichtig.`,
|
|
3399
|
+
},
|
|
3400
|
+
filtersModels: true,
|
|
3390
3401
|
},
|
|
3391
3402
|
],
|
|
3392
3403
|
async loader(getAuth) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magpie-community/opencode-workbuddy-auth",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
4
4
|
"description": "OpenCode provider plugins for WorkBuddy's plans: WorkBuddy (CodeBuddy, copilot.tencent.com) and WorkBuddy AI (www.workbuddy.ai)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.mjs",
|