feat: 支持可选配置图床服务器地址

This commit is contained in:
sliverp
2026-01-30 15:12:28 +08:00
parent a13aacbc3b
commit a9b0c3ff10
5 changed files with 111 additions and 17 deletions

View File

@@ -19,6 +19,8 @@ export interface ResolvedQQBotAccount {
secretSource: "config" | "file" | "env" | "none";
/** 系统提示词 */
systemPrompt?: string;
/** 图床服务器公网地址 */
imageServerBaseUrl?: string;
config: QQBotAccountConfig;
}
@@ -35,6 +37,8 @@ export interface QQBotAccountConfig {
allowFrom?: string[];
/** 系统提示词,会添加在用户消息前面 */
systemPrompt?: string;
/** 图床服务器公网地址,用于发送图片,例如 http://your-ip:18765 */
imageServerBaseUrl?: string;
}
/**