mirror of
https://github.com/RichieCahill/dotfiles.git
synced 2026-04-17 04:58:19 -04:00
Remove LLMConfig, pass LLM settings directly to LLMClient
LLMConfig was an unnecessary intermediary — LLMClient now takes model, host, and port directly as constructor args. https://claude.ai/code/session_01AKXQBuVBsW7J1YbukDiQ7A
This commit is contained in:
@@ -62,20 +62,6 @@ class InventoryUpdate(BaseModel):
|
||||
source_type: str = "" # "receipt_photo" or "text_list"
|
||||
|
||||
|
||||
class LLMConfig(BaseModel):
|
||||
"""Configuration for an LLM backend."""
|
||||
|
||||
model: str
|
||||
host: str
|
||||
port: int = 11434
|
||||
temperature: float = 0.1
|
||||
|
||||
@property
|
||||
def base_url(self) -> str:
|
||||
"""Ollama API base URL."""
|
||||
return f"http://{self.host}:{self.port}"
|
||||
|
||||
|
||||
class BotConfig(BaseModel):
|
||||
"""Top-level bot configuration."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user