feat: 副对话系统 — Webhook 第三方平台接入 (通用/Discord格式支持)
This commit is contained in:
@@ -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", ""),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user