一键导入
chappie-config
CHAPPiE's configuration system. Use when adding new settings, modifying config.py, updating schemas, or working with CHAPPIE_CONFIG.json.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
CHAPPiE's configuration system. Use when adding new settings, modifying config.py, updating schemas, or working with CHAPPIE_CONFIG.json.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | chappie-config |
| description | CHAPPiE's configuration system. Use when adding new settings, modifying config.py, updating schemas, or working with CHAPPIE_CONFIG.json. |
CHAPPIE_CONFIG.json → config/root_config.py → config/config.py (Settings class)
↓ ↓
config/secrets.py API: /settings endpoint
config/addSecrets.py Frontend: settings-page.tsx
| File | Role |
|---|---|
config/config.py | Settings class, LLMProvider enum, ALL config defaults |
config/root_config.py | JSON file I/O for CHAPPIE_CONFIG.json |
CHAPPIE_CONFIG.example.json | Template (not in git) |
config/secrets.py | API keys (not in git) |
api/schemas.py | SettingsSnapshot, SettingsUpdate Pydantic models |
api/routers/runtime.py | GET/POST /settings, _settings_snapshot() |
config/config.py_get_val() call with default valueupdate_from_ui() for persistence_export_root_values() for JSON exportSettingsSnapshot and SettingsUpdate in api/schemas.py_settings_snapshot() in api/routers/runtime.pyfrontend/src/pages/settings-page.tsx SETTINGS_DEFS array| Group | Settings |
|---|---|
| Provider | llm_provider, vllm_model, ollama_model, cerebras_model |
| Generation | temperature, repetition_penalty, max_tokens, thinking/answer limits |
| Memory | memory_top_k, memory_min_relevance, stm_summary_threshold |
| Steering | enable_steering, steering_model |
| Intent | intent_provider, query_extraction_provider |
| Training | training_chappie_model |
class LLMProvider(str, Enum):
OLLAMA = "ollama"
CEREBRAS = "cerebras"
VLLM = "vllm"
settings.update_from_ui() → updates in-memory valuesbackend.apply_runtime_settings(force=True) → rebuilds brain/intent processor_persist_to_root_config() → writes to CHAPPIE_CONFIG.jsonconfig.py — always in secrets.py or CHAPPIE_CONFIG.jsonCHAPPIE_CONFIG.json is gitignored — never commit real configfloat() conversion, bool use bool(), int use int()_parse_provider() handles "auto", None, and "" → returns NoneCHAPPiE's brain, memory, and life simulation architecture. Use when modifying core pipelines, brain agents, steering, or global workspace.
Backend development for CHAPPiE. Use when working on FastAPI APIs, vLLM brain, Cerebras integration, training daemon, or backend_wrapper.py.
CHAPPiE's React frontend. Use when modifying UI pages, components, Tailwind styling, or the chat streaming experience.
CHAPPiE's prompt engineering. Use when modifying system prompts, emotion templates, generation budget instructions, or Cerebras formatting prompts.
CHAPPiE testing strategy. Use when writing or running tests, CI/CD, or validating changes before push.
Führt ein vollständiges CHAPPiE-Update durch: git pull, Dienste neustarten, Tests, Health-Check, Reparatur bei Bedarf.