koishi-plugin-smmcat-nai-diffusion 0.0.5 → 0.0.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.
- package/lib/index.d.ts +1 -0
- package/lib/index.js +5 -4
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -124,8 +124,9 @@ var Config = import_koishi.Schema.object({
|
|
|
124
124
|
token: import_koishi.Schema.string().default("").description("[tuercha](https://api.tuercha.com/register) 绘图站提供的令牌"),
|
|
125
125
|
useGuildId: import_koishi.Schema.array(String).role("table").default([]).description("指定可用群"),
|
|
126
126
|
useGuildUser: import_koishi.Schema.array(String).role("table").default([]).description("指定可用人(无视可用群规则)"),
|
|
127
|
-
gemimiBaseUrl: import_koishi.Schema.string().default("https://api.futureppo.top").description("Gemimi
|
|
128
|
-
gemimiToken: import_koishi.Schema.string().default("").description("Gemimi
|
|
127
|
+
gemimiBaseUrl: import_koishi.Schema.string().default("https://api.futureppo.top").description("Gemimi 接口基地址(用于图生词,描述生词)"),
|
|
128
|
+
gemimiToken: import_koishi.Schema.string().default("").description("Gemimi 图生词提供的令牌(用于图生词,描述生词)"),
|
|
129
|
+
gemimiType: import_koishi.Schema.string().default("gemini-3-flash-preview").description("Gemimi 模型版本名(用于图生词,描述生词)")
|
|
129
130
|
});
|
|
130
131
|
function apply(ctx, config) {
|
|
131
132
|
ctx.on("ready", () => {
|
|
@@ -236,7 +237,7 @@ function apply(ctx, config) {
|
|
|
236
237
|
throw new Error(imgInfo.err);
|
|
237
238
|
}
|
|
238
239
|
const body = {
|
|
239
|
-
model:
|
|
240
|
+
model: config.gemimiType,
|
|
240
241
|
messages: [
|
|
241
242
|
{
|
|
242
243
|
role: "user",
|
|
@@ -294,7 +295,7 @@ function apply(ctx, config) {
|
|
|
294
295
|
async getEntryByGemimiForText(prompt, fn) {
|
|
295
296
|
try {
|
|
296
297
|
const body = {
|
|
297
|
-
model:
|
|
298
|
+
model: config.gemimiType,
|
|
298
299
|
messages: [
|
|
299
300
|
{
|
|
300
301
|
role: "user",
|