somratpro commited on
Commit
cfe4b3a
Β·
1 Parent(s): 9cf2dd4

Make LLM_MODEL required + add Duplicate Space button

Browse files
Files changed (2) hide show
  1. README.md +6 -8
  2. start.sh +3 -1
README.md CHANGED
@@ -22,7 +22,7 @@ Works with **any LLM** (Anthropic, OpenAI, Google), connects via **Telegram**, a
22
 
23
  ### ✨ Features
24
 
25
- - **Zero-config** β€” just add 2 secrets and deploy
26
  - **Any LLM provider** β€” Claude, GPT-4, Gemini, etc.
27
  - **Built-in keep-alive** β€” self-pings to prevent HF sleep (no external cron needed)
28
  - **Auto-sync workspace** β€” commits + pushes changes every 10 min
@@ -38,7 +38,9 @@ Works with **any LLM** (Anthropic, OpenAI, Google), connects via **Telegram**, a
38
  ## πŸš€ Quick Start
39
 
40
  ### 1. Duplicate this Space
41
- Click **"Duplicate this Space"** β†’ name it β†’ set to **Private**
 
 
42
 
43
  ### 2. Add Required Secrets
44
  Go to **Settings β†’ Secrets**:
@@ -46,6 +48,7 @@ Go to **Settings β†’ Secrets**:
46
  | Secret | Value |
47
  |--------|-------|
48
  | `LLM_API_KEY` | Your API key ([Anthropic](https://console.anthropic.com/) / [OpenAI](https://platform.openai.com/) / [Google](https://ai.google.dev/)) |
 
49
  | `GATEWAY_TOKEN` | Run `openssl rand -hex 32` to generate |
50
 
51
  ### 3. Deploy
@@ -76,14 +79,9 @@ See **`.env.example`** for the complete reference with examples.
76
  | Variable | Purpose |
77
  |----------|---------|
78
  | `LLM_API_KEY` | LLM provider API key |
 
79
  | `GATEWAY_TOKEN` | Gateway auth token |
80
 
81
- #### LLM
82
-
83
- | Variable | Default | Purpose |
84
- |----------|---------|---------|
85
- | `LLM_MODEL` | `anthropic/claude-haiku-4-5` | Model to use (auto-detects provider from prefix) |
86
-
87
  #### Telegram
88
 
89
  | Variable | Purpose |
 
22
 
23
  ### ✨ Features
24
 
25
+ - **Zero-config** β€” just add 3 secrets and deploy
26
  - **Any LLM provider** β€” Claude, GPT-4, Gemini, etc.
27
  - **Built-in keep-alive** β€” self-pings to prevent HF sleep (no external cron needed)
28
  - **Auto-sync workspace** β€” commits + pushes changes every 10 min
 
38
  ## πŸš€ Quick Start
39
 
40
  ### 1. Duplicate this Space
41
+ [![Duplicate this Space](https://huggingface.co/datasets/huggingface/badges/resolve/main/duplicate-this-space-xl.svg)](https://huggingface.co/spaces/somratpro/HuggingClaw?duplicate=true)
42
+
43
+ Click the button above β†’ name it β†’ set to **Private**
44
 
45
  ### 2. Add Required Secrets
46
  Go to **Settings β†’ Secrets**:
 
48
  | Secret | Value |
49
  |--------|-------|
50
  | `LLM_API_KEY` | Your API key ([Anthropic](https://console.anthropic.com/) / [OpenAI](https://platform.openai.com/) / [Google](https://ai.google.dev/)) |
51
+ | `LLM_MODEL` | Model to use (e.g. `google/gemini-2.5-flash`, `anthropic/claude-sonnet-4-5`, `openai/gpt-4`) |
52
  | `GATEWAY_TOKEN` | Run `openssl rand -hex 32` to generate |
53
 
54
  ### 3. Deploy
 
79
  | Variable | Purpose |
80
  |----------|---------|
81
  | `LLM_API_KEY` | LLM provider API key |
82
+ | `LLM_MODEL` | Model to use (e.g. `google/gemini-2.5-flash`, `anthropic/claude-sonnet-4-5`, `openai/gpt-4`) β€” auto-detects provider from prefix |
83
  | `GATEWAY_TOKEN` | Gateway auth token |
84
 
 
 
 
 
 
 
85
  #### Telegram
86
 
87
  | Variable | Purpose |
start.sh CHANGED
@@ -18,6 +18,9 @@ ERRORS=""
18
  if [ -z "$LLM_API_KEY" ]; then
19
  ERRORS="${ERRORS} ❌ LLM_API_KEY is not set\n"
20
  fi
 
 
 
21
  if [ -z "$GATEWAY_TOKEN" ]; then
22
  ERRORS="${ERRORS} ❌ GATEWAY_TOKEN is not set (generate: openssl rand -hex 32)\n"
23
  fi
@@ -29,7 +32,6 @@ if [ -n "$ERRORS" ]; then
29
  fi
30
 
31
  # ── Set LLM env based on model name ──
32
- LLM_MODEL="${LLM_MODEL:-anthropic/claude-haiku-4-5}"
33
 
34
  # Auto-correct Gemini models to use google/ prefix if anthropic/ was mistakenly used
35
  if [[ "$LLM_MODEL" == "anthropic/gemini"* ]]; then
 
18
  if [ -z "$LLM_API_KEY" ]; then
19
  ERRORS="${ERRORS} ❌ LLM_API_KEY is not set\n"
20
  fi
21
+ if [ -z "$LLM_MODEL" ]; then
22
+ ERRORS="${ERRORS} ❌ LLM_MODEL is not set (e.g. google/gemini-2.5-flash, anthropic/claude-sonnet-4-5, openai/gpt-4)\n"
23
+ fi
24
  if [ -z "$GATEWAY_TOKEN" ]; then
25
  ERRORS="${ERRORS} ❌ GATEWAY_TOKEN is not set (generate: openssl rand -hex 32)\n"
26
  fi
 
32
  fi
33
 
34
  # ── Set LLM env based on model name ──
 
35
 
36
  # Auto-correct Gemini models to use google/ prefix if anthropic/ was mistakenly used
37
  if [[ "$LLM_MODEL" == "anthropic/gemini"* ]]; then