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