增加openai

This commit is contained in:
dekun
2026-05-22 22:31:09 +08:00
parent ac762b540c
commit 5ff9cc4587
5 changed files with 202 additions and 42 deletions
+7 -2
View File
@@ -68,10 +68,15 @@ monitor:
# 仅在 universe=watchlist 时使用;all_swaps 下可留空列表
watch_symbols: []
# 本地 Ollama + Gemma 漏斗(扫描命中 → 日线+图 → JSON 打分 → 高优先级企业微信)
# Gemma 漏斗(扫描命中 → 日线+图 → JSON 打分 → 高优先级企业微信)
# 本机 Ollamaollama_base_url: http://127.0.0.1:11434 api_style: ollama api_key 留空
# OpenAI 兼容网关(如 op.bz121.com):base 填 https://op.bz121.com/v1 api_style: openai api_key: sk-...
# model 须与网关中登记的模型 ID 完全一致
gemma:
enabled: true
ollama_base_url: "http://192.168.8.64:11434"
ollama_base_url: "https://op.bz121.com/v1"
api_style: "openai"
api_key: "sk-replace-with-your-key"
model: "gemma4:e4b"
timeout_seconds: 180
temperature: 0.15