76 lines
1.9 KiB
Plaintext
76 lines
1.9 KiB
Plaintext
# FAM-Edge 配置文件 (Oracle 端)
|
|
# 复制此文件为 config.yaml 并修改实际值
|
|
|
|
# NAS 端回调地址
|
|
nas:
|
|
webhook_url: "http://100.x.x.10:8000/api/core/callback/event"
|
|
media_base_url: "http://100.x.x.10:8000/media"
|
|
media_token: "xxx"
|
|
|
|
# Oracle 端服务
|
|
server:
|
|
host: "0.0.0.0"
|
|
port: 5000
|
|
max_concurrent_tasks: 1
|
|
|
|
# 关键帧筛选参数
|
|
video:
|
|
candidate_frames: 30 # 粗抽候选帧数
|
|
min_key_frames: 5 # 最少关键帧
|
|
max_key_frames: 8 # 最多关键帧
|
|
mse_threshold: 500 # 帧差阈值
|
|
jpeg_quality: 80
|
|
max_long_edge: 1024
|
|
|
|
# 超时(秒)
|
|
timeout:
|
|
download: 60
|
|
vlm_visual: 240 # 单模型视觉分析超时
|
|
vlm_fusion: 120
|
|
callback: 30
|
|
overall: 600
|
|
|
|
# 模型清单(可扩展,新增模型只需在此数组加一项 + 实现适配器)
|
|
models:
|
|
- provider: "ollama"
|
|
enabled: true
|
|
model_name: "llava-phi3"
|
|
base_url: "http://localhost:11434"
|
|
timeout: 240
|
|
circuit_breaker:
|
|
enabled: false # 本地模型不启用熔断
|
|
threshold: 5
|
|
cooldown: 900
|
|
|
|
- provider: "gemini"
|
|
enabled: true
|
|
model_name: "gemini-1.5-flash"
|
|
api_key: "${GEMINI_API_KEY}" # 从环境变量读取
|
|
timeout: 8
|
|
circuit_breaker:
|
|
enabled: true
|
|
threshold: 5
|
|
cooldown: 900
|
|
|
|
# v1.1 扩展示例(取消注释并填入 API Key 即启用)
|
|
# - provider: "openai"
|
|
# enabled: false
|
|
# model_name: "gpt-4o"
|
|
# api_key: "${OPENAI_API_KEY}"
|
|
# timeout: 30
|
|
# circuit_breaker:
|
|
# enabled: true
|
|
# threshold: 5
|
|
# cooldown: 900
|
|
|
|
# - provider: "nvidia"
|
|
# enabled: false
|
|
# model_name: "nvidia/llama-3.1-nemotron-70b-instruct"
|
|
# api_key: "${NVIDIA_API_KEY}"
|
|
# base_url: "https://integrate.api.nvidia.com/v1"
|
|
# timeout: 30
|
|
# circuit_breaker:
|
|
# enabled: true
|
|
# threshold: 5
|
|
# cooldown: 900
|