增加openai
This commit is contained in:
@@ -119,12 +119,14 @@ class MonitorConfig(BaseModel):
|
||||
|
||||
class GemmaConfig(BaseModel):
|
||||
"""
|
||||
本地 Ollama 跑 Gemma(或其它模型)做漏斗二次分拣。
|
||||
需在机器上自行启动 ollama 并拉取模型;开启后仅对本轮 5m 扫描命中的 WATCH/TRIGGER 按成交额取前 N 再请求。
|
||||
Gemma 漏斗:默认直连本机 Ollama(/api/chat)。
|
||||
若使用 OpenAI 兼容网关(如 https://op.bz121.com/v1 + Bearer),设 api_style=openai 并填写 api_key。
|
||||
"""
|
||||
|
||||
enabled: bool = False
|
||||
ollama_base_url: str = "http://127.0.0.1:11434"
|
||||
api_key: str = ""
|
||||
api_style: Literal["ollama", "openai"] = "ollama"
|
||||
model: str = "gemma2:2b"
|
||||
timeout_seconds: float = 180.0
|
||||
temperature: float = 0.15
|
||||
|
||||
Reference in New Issue
Block a user