tradusai/run_llm.sh
2025-12-02 22:54:03 +08:00

26 lines
1.0 KiB
Bash
Executable File
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.

#!/bin/bash
# 运行量化+LLM完整分析Gate关闭每次都调用LLM
echo "🚀 运行完整分析(量化 + DeepSeek AI"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "⚠️ Gate已关闭 - 每次都会调用 DeepSeek"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
# 检查容器
if ! docker compose ps scheduler 2>/dev/null | grep -q "running"; then
echo "⚠️ 启动 scheduler..."
docker compose --profile scheduler up -d
sleep 5
fi
# 临时降低Gate阈值到0强制调用LLM并发送钉钉消息
docker compose exec scheduler bash -c '
export LLM_MIN_COMPOSITE_SCORE=0.0
python /app/scripts/generate_trading_signal.py --send-dingtalk
'
echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "✅ 完成!查看结果: ./view_signal.sh"