Files
rongtongjin/.env.example
T
hughhuangandClaude Opus 4.6 2d301370e2 feat: 支持 Anthropic Messages API 格式调用
通过 LLM_PROVIDER 环境变量区分 openai 和 anthropic 两种调用方式,
LLMClient 根据 provider 分发到不同的 API 调用路径。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 11:22:08 +08:00

37 lines
1.4 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 监控间隔(毫秒),默认 60000(1 分钟)
MONITOR_INTERVAL=60000
# Webhook 地址(可选,用于企业微信、钉钉等告警)
# WEBHOOK_URL=https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=YOUR_KEY
# 飞书 Webhook 地址(用于接收每小时汇总报告和白银基线告警)
# FEISHU_WEBHOOK_URL=https://open.feishu.cn/open-apis/bot/v2/hook/xxxxxxxxxxxxxxxxxxx
# 白银基线监控阈值(默认 0.2)
# 当白银价格相对于基线变化超过此值时触发告警
SILVER_BASELINE_THRESHOLD=0.2
# 黄金基线监控阈值(默认 0.2)
# 当黄金价格相对于基线变化超过此值时触发告警
GOLD_BASELINE_THRESHOLD=5
# LLM API 配置(用于趋势分析功能)
# LLM 提供商类型:openai(默认)或 anthropic
# LLM_PROVIDER=openai
# === OpenAI 兼容 API 配置 ===
# LLM API 基础 URL(可选,默认 OpenAI API)
# LLM_API_BASE=https://api.openai.com/v1
# LLM API 密钥(必需,如果未配置则跳过趋势分析功能)
# LLM_API_KEY=sk-xxxxxxxxxxxxxxxxxxxx
# LLM 模型(可选,默认 gpt-4o-mini)
# LLM_MODEL=gpt-4o-mini
# === Anthropic API 配置(用于测试脚本 test-anthropic-llm.ts) ===
# ANTHROPIC_API_KEY=sk-ant-xxxxxxxxxxxxxxxxxxxx
# ANTHROPIC_MODEL=claude-sonnet-4-20250514
# ANTHROPIC_API_BASE=https://api.anthropic.com
# 趋势分析间隔(毫秒),默认 300000(5 分钟)
# TREND_ANALYSIS_INTERVAL=300000