feat: 副对话系统 — Webhook 第三方平台接入 (通用/Discord格式支持)

This commit is contained in:
2026-05-16 23:27:04 +08:00
parent 1f5c2508d6
commit 0757ad26b5
4 changed files with 439 additions and 0 deletions
@@ -45,6 +45,9 @@ type Config struct {
// WebSocket
WSMaxConnections int
// Webhook (第三方平台接入)
WebhookAPIKey string
}
// Load 从环境变量加载配置
@@ -80,6 +83,8 @@ func Load() *Config {
LLMModel: getEnv("LLM_MODEL", "gpt-4o"),
WSMaxConnections: getEnvInt("WS_MAX_CONNECTIONS", 1000),
WebhookAPIKey: getEnv("WEBHOOK_API_KEY", ""),
}
}