Commit History
-
fix: route chat completions to free serverless Inference API
Hermes BotUnverified signatureBy default, recent huggingface_hub versions route InferenceClient.chat_completion() to router.huggingface.co, which requires paid providers. Explicitly passing base_url='https://api-inference.huggingface.co' forces it to use the free serverless inference endpoint.93e094a -
fix: lock default model to Qwen/Qwen2.5-1.5B-Instruct
Hermes BotUnverified signatureNewer candidates (Phi-4-mini, SmolLM3-3B, Gemma-2-9B-it) return 'model_not_supported' from the HF Inference router on this account. Keep the free-tier working default; users can still override via config.dd78128 -
fix: revert default model to Qwen/Qwen2.5-1.5B-Instruct
Hermes BotUnverified signatureQwen 2.5 7B requires paid Inference Providers on this account. Revert to 1.5B free-tier model; users can still override via config modal.04b08cb -
fix: use Qwen/Qwen2.5-7B-Instruct as default model
Hermes BotUnverified signatureGemma 2 9B is not supported by the HF Inference router on this account. Qwen 2.5 7B is supported, still well under 32B, and strong for storytelling.e382b5e -
feat: upgrade default model to google/gemma-2-9b-it
Hermes BotUnverified signature9B parameters, newer architecture, better storytelling quality Still under 32B constraint for Tiny Titan + Thousand Token Wood tracks6f6cdba -
feat: add user-configurable HF token + model override
Hermes BotUnverified signature- Add /api/config GET/POST endpoints for BYO HF token + model id - Token stored in-memory only, never written to disk - UI: config button + modal in CRT terminal footer - Frontend: localStorage-free, all state server-side per-session - Procedural fallback always active when inference fails or cooldown hitsecc79cb -
fix: remove invalid provider kwarg from HF Inference client
Hermes BotUnverified signatureThe huggingface_hub InferenceClient.chat_completion() on the current version (0.36.2) errors with 'Model not supported by provider hf-inference' when a provider is passed. The free HF Inference API works correctly with the default provider, so we now omit it to restore working inference and disable the persistent warning. Also: cleanup blank line from prior edit.1485f5b -
feat: wire all 3 apps to HF Inference API + cooldowns
Hermes Bot +1: NanoboozhooMigration from local llama-cpp-python (heavy build) to serverless HF Inference API with project-scoped cooldowns. HF Spaces can now build and serve apps without compile steps. New shared module: - shared/inference_client.py — chat completions via InferenceClient, per-project cooldown registry (6s tinybard, 10s focusfriend, 12s crittercalm), always-fallback when cooldown active or call fails. Per-project changes: - TinyBard: replaced GGUF loader with InferenceClient. End-to-end game loop unchanged on procedural fallback; new model is Qwen2.5-1.5B via /api/game/{start,choice} (also exposed as MCP tool at /gradio). - FocusFriend: inference/llm.py rewritten to use the shared client. Streaming preserved (chunked word-by-word). - CritterCalm: content/script_generator.py uses shared client for calming script generation. Voice cloning still uses local OmniVoice (heavy, requires local install). Build: - All 3 requirements.txt files: removed llama-cpp-python (the cause of the …a9f90f6
-
fix: strip Anishinaabe-mowin from master PRD; rename shared module
Hermes Bot +1: NanoboozhooThe master llms.txt PRD is consumed by agents and must be English-only. Anishinaabe aesthetic content remains in projects/* (READMEs, app code, in-UI strings) as an artistic choice, but is removed from the PRD-layer: - llms.txt: rewrote Overview/Rules/Infrastructure/Projects/TODO/Goals/Reference to English-only, renamed 'Aesthetic' to 'Cedar-Copper Edition'. - shared/anishinaabe_solarpunk.py → shared/cedar_copper_tokens.py Module is not imported by any project; rename for clarity. - Renamed CSS variables --asp-* → --cc-* in the shared module. - Renamed header() docstring and WELCOME/PIP_GREETING constants. - Note: project UIs and READMEs retain the Anishinaabe aesthetic per the original artistic direction. All 3 apps still running on ports 7861/7862/7863 (verified HTTP 200). Co-Authored-By: Nanoboozhoo <nanoboozhoo@git-aaaki>771a4f7 -
feat: Anishinaabe-Solarpunk aesthetic across all 3 apps
Hermes Bot +1: Nanoboozhoo- shared/anishinaabe_solarpunk.py: design tokens module (palette, syllabics, symbols) - TinyBard: cedar-copper CRT cabinet, sun-amber phosphor, bilingual Anishinaabe labels - FocusFriend: pip shrine with sun-amber gradients, sky-water banner, Anishinaabe greeting - CritterCalm: maanamewin banner, solarpunk theme, science section in serif - All READMEs + llms.txt updated to v0.4.0 Cedar Edition Gradio 6.0 compatibility fixes: - Move css/head/theme from gr.Blocks() to app.launch() - Chatbot history format: {role, content} dicts (was tuples) - HF Spaces metadata: colorTo must be in [red, yellow, green, blue, indigo, purple, pink, gray] - TinyBard: added clean FastAPI /api/game/{start,choice} endpoints (MCP still available at /gradio) Verified end-to-end: - TinyBard 7861: CRT renders, game loop works (start → choose → next scene) - FocusFriend 7862: chat with Pip works, all 4 modes accessible - CritterCalm 7863: voice cloning tab, calm tab, about tab all render Co-Authored-By: Nanoboozh…08f45f2