koishi-plugin-aka-ai-generator 0.8.3 → 0.8.4
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 +24 -23
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1830,42 +1830,43 @@ 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.
|
|
1833
|
+
// ===== 2. API 配置(根据 provider 条件显示) =====
|
|
1834
1834
|
import_koishi2.Schema.union([
|
|
1835
|
+
// 云雾配置
|
|
1835
1836
|
import_koishi2.Schema.object({
|
|
1836
1837
|
provider: import_koishi2.Schema.const("yunwu").required(),
|
|
1837
1838
|
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
|
+
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()
|
|
1839
1846
|
}),
|
|
1840
|
-
|
|
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 配置(条件显示) =====
|
|
1846
|
-
import_koishi2.Schema.union([
|
|
1847
|
+
// GPTGod 配置
|
|
1847
1848
|
import_koishi2.Schema.object({
|
|
1848
1849
|
provider: import_koishi2.Schema.const("gptgod").required(),
|
|
1849
1850
|
gptgodApiKey: import_koishi2.Schema.string().role("secret").required().description("GPTGod API 密钥"),
|
|
1850
|
-
gptgodModelId: import_koishi2.Schema.string().default("nano-banana").description("GPTGod 模型ID")
|
|
1851
|
+
gptgodModelId: import_koishi2.Schema.string().default("nano-banana").description("GPTGod 模型ID"),
|
|
1852
|
+
// 其他 provider 的隐藏默认值
|
|
1853
|
+
yunwuApiKey: import_koishi2.Schema.string().role("secret").default("").hidden(),
|
|
1854
|
+
yunwuModelId: import_koishi2.Schema.string().default("gemini-2.5-flash-image").hidden(),
|
|
1855
|
+
geminiApiKey: import_koishi2.Schema.string().role("secret").default("").hidden(),
|
|
1856
|
+
geminiModelId: import_koishi2.Schema.string().default("gemini-2.5-flash").hidden(),
|
|
1857
|
+
geminiApiBase: import_koishi2.Schema.string().default("https://generativelanguage.googleapis.com").hidden()
|
|
1851
1858
|
}),
|
|
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([
|
|
1859
|
+
// Gemini 配置
|
|
1859
1860
|
import_koishi2.Schema.object({
|
|
1860
1861
|
provider: import_koishi2.Schema.const("gemini").required(),
|
|
1861
1862
|
geminiApiKey: import_koishi2.Schema.string().role("secret").required().description("Gemini API 密钥"),
|
|
1862
1863
|
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 基础地址")
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1864
|
+
geminiApiBase: import_koishi2.Schema.string().default("https://generativelanguage.googleapis.com").description("Gemini API 基础地址"),
|
|
1865
|
+
// 其他 provider 的隐藏默认值
|
|
1866
|
+
yunwuApiKey: import_koishi2.Schema.string().role("secret").default("").hidden(),
|
|
1867
|
+
yunwuModelId: import_koishi2.Schema.string().default("gemini-2.5-flash-image").hidden(),
|
|
1868
|
+
gptgodApiKey: import_koishi2.Schema.string().role("secret").default("").hidden(),
|
|
1869
|
+
gptgodModelId: import_koishi2.Schema.string().default("nano-banana").hidden()
|
|
1869
1870
|
})
|
|
1870
1871
|
]),
|
|
1871
1872
|
// ===== 5. 通用设置 =====
|