@fish-under-sea/magpie-dragonapi 1.0.2 → 1.0.3
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/index.mjs +1 -1
- package/package.json +1 -1
- package/ui/style.css +18 -0
package/index.mjs
CHANGED
|
@@ -187,7 +187,7 @@ export default async function dragonapi(input, options) {
|
|
|
187
187
|
cfg.provider ??= {}
|
|
188
188
|
cfg.provider[PROVIDER_ID] ??= {}
|
|
189
189
|
const p = cfg.provider[PROVIDER_ID]
|
|
190
|
-
p.name = '
|
|
190
|
+
p.name = 'DragonAPI'
|
|
191
191
|
if (!p.npm) p.npm = '@ai-sdk/openai-compatible'
|
|
192
192
|
if (!p.api) p.api = ctx.site + '/v1'
|
|
193
193
|
// 不要声明 models:空对象会被理解成「这个供应商声明的模型是 0 个」。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fish-under-sea/magpie-dragonapi",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "DragonAPI for magpie: a provider plugin whose models, groups and prices come from the site's public /api/pricing, with balance and per-call usage from an sk- key, plus a local page that lists the market (read-only), shows usage and can mint new keys for a group.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.mjs",
|
package/ui/style.css
CHANGED
|
@@ -3441,3 +3441,21 @@ input.keys-input:focus-visible, select.keys-select:focus-visible {
|
|
|
3441
3441
|
.logs-head-box .logs-toolbar,
|
|
3442
3442
|
.logs-head-box .logs-filters-adv,
|
|
3443
3443
|
.logs-head-box .logs-chips-bar { margin: 0; }
|
|
3444
|
+
|
|
3445
|
+
/* 访问令牌:顶部两卡完整显示,不在卡片内部滚 */
|
|
3446
|
+
#panel-pat { overflow-y: auto; }
|
|
3447
|
+
#panel-pat > .grid-2 { flex: 0 0 auto; }
|
|
3448
|
+
#panel-pat > .grid-2 > .card { overflow: visible; }
|
|
3449
|
+
#panel-pat > .card { flex: 0 0 auto; }
|
|
3450
|
+
|
|
3451
|
+
/* 通知改成浮空 toast,固定在右上角,不占布局、不被页面滚动藏起来 */
|
|
3452
|
+
.banners {
|
|
3453
|
+
position: fixed; top: 72px; right: 16px; z-index: 300;
|
|
3454
|
+
width: min(420px, calc(100vw - 32px)); max-height: 50vh; overflow: auto;
|
|
3455
|
+
display: flex; flex-direction: column; gap: 8px; pointer-events: none;
|
|
3456
|
+
}
|
|
3457
|
+
.banners:not(:empty) { margin-top: 0; }
|
|
3458
|
+
.banners .banner {
|
|
3459
|
+
pointer-events: auto; background: var(--card);
|
|
3460
|
+
box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
|
|
3461
|
+
}
|