Spaces:
Running
Running
File size: 938 Bytes
1e436e0 650d835 989cfe7 7db5adc fbc2805 7db5adc 650d835 fbc2805 | 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 28 29 30 31 32 33 34 35 36 37 | """Configuration: settings, constants, and rate limits.
Centralizes tunable values (model id, decoding parameters, per-session
turn cap, evaluation attributes) so they can be adjusted without touching
the inference or prompt logic.
Implementation pending — scaffolding only.
"""
MIN_SCORE: int = 1
MAX_SCORE: int = 7
SESSION_TURN_CAP: int = 12
MODEL_ID: str = "meta-llama/Llama-3.3-70B-Instruct"
DEFAULT_TEMPERATURE: float = 0.7
DEFAULT_MAX_TOKENS: int = 1200
DEFAULT_ATTRIBUTES: list[str] = [
"competent",
"likeable",
"considerate",
"polite",
"formal",
"demanding",
]
# Color mapping for UI rendering (matches the PRISMA prism figure).
ATTRIBUTE_COLORS: dict[str, str] = {
"competent": "#a855f7", # purple
"likeable": "#f97316", # orange
"considerate": "#22c55e", # green
"polite": "#eab308", # yellow
"formal": "#3b82f6", # blue
"demanding": "#e11d48", # red
}
|