Nerdur commited on
Commit
f668db3
·
verified ·
1 Parent(s): 549c4b2

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +143 -12
README.md CHANGED
@@ -9,25 +9,156 @@ license: mit
9
  app_port: 8080
10
  ---
11
 
12
- # Open WebUI
13
 
14
- Full-featured AI chat interface. Supports OpenRouter, Groq, SambaNova, Cloudflare, GitHub Models and more.
 
 
 
 
 
 
 
15
 
16
  ## Secrets
17
 
18
- | Variable | Description |
19
- |---|---|
20
- | `OPENAI_API_BASE_URL` | Provider URL |
21
- | `OPENAI_API_KEY` | API key |
22
 
23
- ## OpenRouter (besplatni modeli)
 
 
 
 
24
  ```
25
- OPENAI_API_BASE_URL = https://openrouter.ai/api/v1
26
- OPENAI_API_KEY = tvoj_key
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  ```
28
 
29
- ## Groq
 
 
 
 
30
  ```
31
- OPENAI_API_BASE_URL = https://api.groq.com/openai/v1
32
- OPENAI_API_KEY = tvoj_key
 
 
 
 
 
33
  ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  app_port: 8080
10
  ---
11
 
12
+ # Open WebUI on Hugging Face Spaces
13
 
14
+ This Space is configured to keep secrets out of the image, restore data from a Hugging Face dataset backup, and auto-register OpenAI-compatible providers at startup.
15
+
16
+ ## What you need to set
17
+
18
+ Put sensitive values in `Secrets`.
19
+ Put non-sensitive values in `Variables`.
20
+
21
+ If you want the simplest setup, you can also put everything in `Secrets`.
22
 
23
  ## Secrets
24
 
25
+ Required:
 
 
 
26
 
27
+ ```text
28
+ WEBUI_ADMIN_EMAIL
29
+ WEBUI_ADMIN_PASSWORD
30
+ WEBUI_ADMIN_NAME
31
+ WEBUI_SECRET_KEY
32
  ```
33
+
34
+ Provider secrets:
35
+
36
+ ```text
37
+ GROQ_API_KEY
38
+ CEREBRAS_API_KEY
39
+ POLLINATIONS_API_KEY
40
+ HF_INFERENCE_TOKEN
41
+ CLOUDFLARE_API_TOKEN
42
+ CLOUDFLARE_ACCOUNT_ID
43
+ GITHUB_TOKEN
44
+ OPENAI_API_KEY
45
+ ANTHROPIC_API_KEY
46
+ GOOGLE_API_KEY
47
+ MISTRAL_API_KEY
48
+ COHERE_API_KEY
49
+ DEEPSEEK_API_KEY
50
+ TOGETHER_API_KEY
51
+ NVIDIA_API_KEY
52
+ SAMBANOVA_API_KEY
53
+ OPENROUTER_API_KEY
54
+ FIREWORKS_API_KEY
55
+ XAI_API_KEY
56
+ TAVILY_API_KEY
57
+ OMDB_API_KEY
58
  ```
59
 
60
+ Backup secrets:
61
+
62
+ ```text
63
+ HF_BACKUP_REPO
64
+ HF_TOKEN
65
  ```
66
+
67
+ ## Variables
68
+
69
+ Recommended:
70
+
71
+ ```text
72
+ HF_BACKUP_INTERVAL_SECONDS=60
73
  ```
74
+
75
+ Optional:
76
+
77
+ ```text
78
+ OPENAI_API_BASE_URL=https://api.openai.com/v1
79
+ DEFAULT_PINNED_MODELS=pollinations/kimi
80
+ TASK_MODEL_EXTERNAL=pollinations/kimi
81
+ ```
82
+
83
+ ## Provider endpoints used by startup script
84
+
85
+ ```text
86
+ Groq https://api.groq.com/openai/v1
87
+ Cerebras https://api.cerebras.ai/v1
88
+ Pollinations https://gen.pollinations.ai/v1
89
+ Hugging Face https://router.huggingface.co/v1
90
+ GitHub Models https://models.github.ai/inference
91
+ Cloudflare AI https://api.cloudflare.com/client/v4/accounts/<ACCOUNT_ID>/ai/v1
92
+ OpenAI https://api.openai.com/v1
93
+ Anthropic https://api.anthropic.com/v1
94
+ Google Gemini https://generativelanguage.googleapis.com/v1beta/openai
95
+ Mistral https://api.mistral.ai/v1
96
+ Cohere https://api.cohere.ai/compatibility/v1
97
+ DeepSeek https://api.deepseek.com/v1
98
+ Together AI https://api.together.xyz/v1
99
+ NVIDIA https://integrate.api.nvidia.com/v1
100
+ SambaNova https://api.sambanova.ai/v1
101
+ OpenRouter https://openrouter.ai/api/v1
102
+ Fireworks https://api.fireworks.ai/inference/v1
103
+ xAI https://api.x.ai/v1
104
+ Tavily https://api.tavily.com
105
+ ```
106
+
107
+ ## Pollinations
108
+
109
+ Pollinations works without a key for anonymous calls.
110
+
111
+ If `POLLINATIONS_API_KEY` is empty, the Space still configures:
112
+
113
+ ```text
114
+ https://gen.pollinations.ai/v1
115
+ ```
116
+
117
+ Recommended model for coding:
118
+
119
+ ```text
120
+ pollinations/kimi
121
+ ```
122
+
123
+ ## Backup
124
+
125
+ Backup uses the Hugging Face dataset repo named in `HF_BACKUP_REPO`.
126
+
127
+ Example:
128
+
129
+ ```text
130
+ HF_BACKUP_REPO=Nerdur/webui-backup
131
+ ```
132
+
133
+ The backup stores the full Open WebUI data directory as:
134
+
135
+ ```text
136
+ openwebui-data.tar.gz
137
+ ```
138
+
139
+ Default backup interval:
140
+
141
+ ```text
142
+ HF_BACKUP_INTERVAL_SECONDS=300
143
+ ```
144
+
145
+ Suggested value for frequent backups:
146
+
147
+ ```text
148
+ HF_BACKUP_INTERVAL_SECONDS=60
149
+ ```
150
+
151
+ ## Setup order
152
+
153
+ 1. Add all required secrets.
154
+ 2. Add `HF_BACKUP_REPO` and `HF_TOKEN` if you want restore/backup.
155
+ 3. Add `HF_BACKUP_INTERVAL_SECONDS` in Variables if you want frequent backups.
156
+ 4. Add `DEFAULT_PINNED_MODELS=pollinations/kimi` if you want Pollinations as the default coding model.
157
+ 5. Redeploy the Space.
158
+
159
+ ## Notes
160
+
161
+ - The container disk is ephemeral.
162
+ - The repo auto-restores the backup on startup if backup secrets are set.
163
+ - The repo auto-registers provider endpoints on startup if the relevant secrets are present.
164
+ - If a provider secret is missing, that provider is skipped.