-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
27 lines (24 loc) · 1.63 KB
/
Copy path__init__.py
File metadata and controls
27 lines (24 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
"""Registers every model Tuffy can load. Model cards live in src/models/configs/
(local.py for llama.cpp/gguf weights, api.py for API providers) - add a new
model by calling registry.register(...) in the appropriate file; it becomes
available to /models automatically, no other wiring needed.
"""
import src.models.configs.local # noqa: F401 - registers local gguf models as a side effect of import
import src.models.configs.api # noqa: F401 - registers API-provider models as a side effect of import
import src.models.configs.anthropic # noqa: F401 - registers Claude models as a side effect of import
# First-run default, used only until the user sets one with '/models default
# <id>' (persisted in .tuffy/settings.json - see src/settings.py). Can name
# either a local (llama_cpp) or API (openai_compatible/anthropic) model;
# main.py reads each model card's own 'provider' field to load it correctly
# either way, so there's nothing to configure differently based on the
# model's type. Set to Claude Haiku 4.5 - the fastest/cheapest Claude model -
# so a capable model drives both the agent loop and memory's background
# extraction out of the box. Requires ANTHROPIC_API_KEY; if unset or
# unreachable, main.py falls back to FALLBACK_MODEL below.
DEFAULT_MODEL = "claude-haiku-4-5-anthropic"
# Safety-net local model main.py falls back to at startup if the resolved
# default fails to load (e.g. an API model chosen as default but its API key
# env var isn't set, or the API is unreachable) - keeps Tuffy working fully
# offline with zero configuration regardless of what the user has set as
# their default.
FALLBACK_MODEL = "qwen3vl-2b-instruct-q4km"