koishi-plugin-elysia-api-aggregator 0.1.2 → 0.2.0
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/lib/index.cjs +2 -1
- package/lib/index.mjs +1 -1
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -350,7 +351,7 @@ function apply(ctx, config) {
|
|
|
350
351
|
return `已加载 ${count} 个模型`;
|
|
351
352
|
});
|
|
352
353
|
ctx.command("elysia-api.models.list", "列出所有模型").action(() => {
|
|
353
|
-
const all = ctx.elysiaApi
|
|
354
|
+
const all = ctx.elysiaApi?.models.getAll() ?? [];
|
|
354
355
|
return `可用模型列表 (${all.length}):
|
|
355
356
|
` + all.map((m) => `- ${m.name} (${m.type})`).join("\n");
|
|
356
357
|
});
|
package/lib/index.mjs
CHANGED
|
@@ -325,7 +325,7 @@ function apply(ctx, config) {
|
|
|
325
325
|
return `已加载 ${count} 个模型`;
|
|
326
326
|
});
|
|
327
327
|
ctx.command("elysia-api.models.list", "列出所有模型").action(() => {
|
|
328
|
-
const all = ctx.elysiaApi
|
|
328
|
+
const all = ctx.elysiaApi?.models.getAll() ?? [];
|
|
329
329
|
return `可用模型列表 (${all.length}):
|
|
330
330
|
` + all.map((m) => `- ${m.name} (${m.type})`).join("\n");
|
|
331
331
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koishi-plugin-elysia-api-aggregator",
|
|
3
3
|
"description": "Inspired by New-API, the Elysia-API model aggregator plugin allows automatic fetching and manual configuration of available AI models, designed to work with the orchestrator plugin.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "lib/index.mjs",
|
|
7
7
|
"typings": "lib/index.d.ts",
|