Skip to content

feat(deploy): add Render + HF Inference API cloud deploy support - #1

Merged
TFD-42 merged 1 commit into
mainfrom
deploy/render-hf-inference
Aug 11, 2026
Merged

feat(deploy): add Render + HF Inference API cloud deploy support#1
TFD-42 merged 1 commit into
mainfrom
deploy/render-hf-inference

Conversation

@TFD-42

@TFD-42 TFD-42 commented Aug 11, 2026

Copy link
Copy Markdown
Owner

When HF_TOKEN env var is set the app switches automatically to cloud mode:

  • Backend set to openai_compatible pointing to HF Inference API
  • Authorization header injected in all LLM requests (query + stream)
  • Ollama install/check/start skipped entirely
  • Model list returns curated HF serverless models
  • Web UI status indicator shows "HF Inference API" instead of "Ollama"

No behaviour change when HF_TOKEN is absent (local Ollama mode unchanged).

New files: Procfile, render.yaml, .env.example

What this PR does

Related issue

Closes #

Checklist

  • python3 -m unittest discover -s tests -v passes (all 89 tests green)
  • python3 tools/privacy_scan.py exits 0 (no PII introduced)
  • New prompt engineering techniques include a bibliographic reference
  • No new try/except blocks (use project helpers), no as any, no single-letter lambda names

When HF_TOKEN env var is set the app switches automatically to cloud mode:
- Backend set to openai_compatible pointing to HF Inference API
- Authorization header injected in all LLM requests (query + stream)
- Ollama install/check/start skipped entirely
- Model list returns curated HF serverless models
- Web UI status indicator shows "HF Inference API" instead of "Ollama"

No behaviour change when HF_TOKEN is absent (local Ollama mode unchanged).

New files: Procfile, render.yaml, .env.example

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@TFD-42
TFD-42 merged commit a7beb02 into main Aug 11, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant