koishi-plugin-aka-ai-generator 0.8.4 → 0.8.5
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.js +13 -14
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1832,19 +1832,7 @@ var Config = import_koishi2.Schema.intersect([
|
|
|
1832
1832
|
}).description("🎨 供应商选择"),
|
|
1833
1833
|
// ===== 2. API 配置(根据 provider 条件显示) =====
|
|
1834
1834
|
import_koishi2.Schema.union([
|
|
1835
|
-
//
|
|
1836
|
-
import_koishi2.Schema.object({
|
|
1837
|
-
provider: import_koishi2.Schema.const("yunwu").required(),
|
|
1838
|
-
yunwuApiKey: import_koishi2.Schema.string().role("secret").required().description("云雾 API 密钥"),
|
|
1839
|
-
yunwuModelId: import_koishi2.Schema.string().default("gemini-2.5-flash-image").description("云雾图像生成模型ID"),
|
|
1840
|
-
// 其他 provider 的隐藏默认值
|
|
1841
|
-
gptgodApiKey: import_koishi2.Schema.string().role("secret").default("").hidden(),
|
|
1842
|
-
gptgodModelId: import_koishi2.Schema.string().default("nano-banana").hidden(),
|
|
1843
|
-
geminiApiKey: import_koishi2.Schema.string().role("secret").default("").hidden(),
|
|
1844
|
-
geminiModelId: import_koishi2.Schema.string().default("gemini-2.5-flash").hidden(),
|
|
1845
|
-
geminiApiBase: import_koishi2.Schema.string().default("https://generativelanguage.googleapis.com").hidden()
|
|
1846
|
-
}),
|
|
1847
|
-
// GPTGod 配置
|
|
1835
|
+
// GPTGod 配置 - 需要 required() 因为不是默认值
|
|
1848
1836
|
import_koishi2.Schema.object({
|
|
1849
1837
|
provider: import_koishi2.Schema.const("gptgod").required(),
|
|
1850
1838
|
gptgodApiKey: import_koishi2.Schema.string().role("secret").required().description("GPTGod API 密钥"),
|
|
@@ -1856,7 +1844,7 @@ var Config = import_koishi2.Schema.intersect([
|
|
|
1856
1844
|
geminiModelId: import_koishi2.Schema.string().default("gemini-2.5-flash").hidden(),
|
|
1857
1845
|
geminiApiBase: import_koishi2.Schema.string().default("https://generativelanguage.googleapis.com").hidden()
|
|
1858
1846
|
}),
|
|
1859
|
-
// Gemini 配置
|
|
1847
|
+
// Gemini 配置 - 需要 required() 因为不是默认值
|
|
1860
1848
|
import_koishi2.Schema.object({
|
|
1861
1849
|
provider: import_koishi2.Schema.const("gemini").required(),
|
|
1862
1850
|
geminiApiKey: import_koishi2.Schema.string().role("secret").required().description("Gemini API 密钥"),
|
|
@@ -1867,6 +1855,17 @@ var Config = import_koishi2.Schema.intersect([
|
|
|
1867
1855
|
yunwuModelId: import_koishi2.Schema.string().default("gemini-2.5-flash-image").hidden(),
|
|
1868
1856
|
gptgodApiKey: import_koishi2.Schema.string().role("secret").default("").hidden(),
|
|
1869
1857
|
gptgodModelId: import_koishi2.Schema.string().default("nano-banana").hidden()
|
|
1858
|
+
}),
|
|
1859
|
+
// 云雾配置 - 不需要 required() 因为 'yunwu' 是默认值(放在最后作为 fallback)
|
|
1860
|
+
import_koishi2.Schema.object({
|
|
1861
|
+
yunwuApiKey: import_koishi2.Schema.string().role("secret").required().description("云雾 API 密钥"),
|
|
1862
|
+
yunwuModelId: import_koishi2.Schema.string().default("gemini-2.5-flash-image").description("云雾图像生成模型ID"),
|
|
1863
|
+
// 其他 provider 的隐藏默认值
|
|
1864
|
+
gptgodApiKey: import_koishi2.Schema.string().role("secret").default("").hidden(),
|
|
1865
|
+
gptgodModelId: import_koishi2.Schema.string().default("nano-banana").hidden(),
|
|
1866
|
+
geminiApiKey: import_koishi2.Schema.string().role("secret").default("").hidden(),
|
|
1867
|
+
geminiModelId: import_koishi2.Schema.string().default("gemini-2.5-flash").hidden(),
|
|
1868
|
+
geminiApiBase: import_koishi2.Schema.string().default("https://generativelanguage.googleapis.com").hidden()
|
|
1870
1869
|
})
|
|
1871
1870
|
]),
|
|
1872
1871
|
// ===== 5. 通用设置 =====
|