github-actions[bot] commited on
Commit
e269dc0
·
1 Parent(s): 8e57713

deploy: 1558bb2 — 更新 README.md

Browse files
Files changed (2) hide show
  1. README.md +13 -14
  2. huggingface/README.md +13 -14
README.md CHANGED
@@ -1,7 +1,7 @@
1
  -----
2
 
3
  ## title: AI Gateway Hub
4
- emoji: rocket
5
  colorFrom: green
6
  colorTo: blue
7
  sdk: docker
@@ -19,13 +19,13 @@ Register any AI provider and get a single OpenAI-compatible endpoint.
19
 
20
  Go to **Space Settings -> Repository secrets** and add:
21
 
22
- |Secret |Required|Description |
23
- |------------------|--------|---------------------------------------------------------------|
24
- |DATABASE_URL |YES |PostgreSQL URL. LiteLLM v1.81+ requires this for /model/new API|
25
- |LITELLM_MASTER_KEY|YES |Admin key e.g. sk-gateway-xxxx |
26
- |LITELLM_SALT_KEY |YES |Encrypts stored API keys. Never change after first use |
27
- |JWT_SECRET |YES |Session secret (random string) |
28
- |GATEWAY_PUBLIC_URL|YES |https://username-space-name.hf.space |
29
 
30
  ### Free PostgreSQL Providers
31
 
@@ -35,8 +35,8 @@ Go to **Space Settings -> Repository secrets** and add:
35
  |Supabase|500 MB |https://supabase.com|
36
  |Railway |$5 credit|https://railway.app |
37
 
38
- Copy the connection string (format: postgresql://user:pass@host:5432/dbname)
39
- and paste it as the DATABASE_URL secret.
40
 
41
  ## Quick Start
42
 
@@ -55,7 +55,6 @@ print(response.choices[0].message.content)
55
 
56
  ## Notes
57
 
58
- - DATABASE_URL is used by LiteLLM internally for model registration
59
- - Your LLM provider API keys are stored encrypted in DB via LITELLM_SALT_KEY
60
- - Set Space visibility to Private for production use
61
- - Replace the GitHub link above with your actual repository URL
 
1
  -----
2
 
3
  ## title: AI Gateway Hub
4
+ emoji: 🚀
5
  colorFrom: green
6
  colorTo: blue
7
  sdk: docker
 
19
 
20
  Go to **Space Settings -> Repository secrets** and add:
21
 
22
+ |Secret |Required|Description |
23
+ |--------------------|--------|---------------------------------------------------------|
24
+ |`DATABASE_URL` |YES |PostgreSQL direct connection URL (not transaction pooler)|
25
+ |`LITELLM_MASTER_KEY`|YES |Admin key e.g. `sk-gateway-xxxx` |
26
+ |`LITELLM_SALT_KEY` |YES |Encrypts stored API keys. Never change after first use |
27
+ |`JWT_SECRET` |YES |Session secret (random string) |
28
+ |`GATEWAY_PUBLIC_URL`|YES |`https://username-space-name.hf.space` |
29
 
30
  ### Free PostgreSQL Providers
31
 
 
35
  |Supabase|500 MB |https://supabase.com|
36
  |Railway |$5 credit|https://railway.app |
37
 
38
+ Use **Direct connection** (port 5432), NOT transaction pooler (port 6432).
39
+ LiteLLM uses prepared statements which are incompatible with transaction pooling.
40
 
41
  ## Quick Start
42
 
 
55
 
56
  ## Notes
57
 
58
+ - `DATABASE_URL` is used by LiteLLM internally for dynamic model registration
59
+ - Your LLM provider API keys are stored encrypted in DB via `LITELLM_SALT_KEY`
60
+ - Set Space visibility to Private for production use
 
huggingface/README.md CHANGED
@@ -1,7 +1,7 @@
1
  -----
2
 
3
  ## title: AI Gateway Hub
4
- emoji: rocket
5
  colorFrom: green
6
  colorTo: blue
7
  sdk: docker
@@ -19,13 +19,13 @@ Register any AI provider and get a single OpenAI-compatible endpoint.
19
 
20
  Go to **Space Settings -> Repository secrets** and add:
21
 
22
- |Secret |Required|Description |
23
- |------------------|--------|---------------------------------------------------------------|
24
- |DATABASE_URL |YES |PostgreSQL URL. LiteLLM v1.81+ requires this for /model/new API|
25
- |LITELLM_MASTER_KEY|YES |Admin key e.g. sk-gateway-xxxx |
26
- |LITELLM_SALT_KEY |YES |Encrypts stored API keys. Never change after first use |
27
- |JWT_SECRET |YES |Session secret (random string) |
28
- |GATEWAY_PUBLIC_URL|YES |https://username-space-name.hf.space |
29
 
30
  ### Free PostgreSQL Providers
31
 
@@ -35,8 +35,8 @@ Go to **Space Settings -> Repository secrets** and add:
35
  |Supabase|500 MB |https://supabase.com|
36
  |Railway |$5 credit|https://railway.app |
37
 
38
- Copy the connection string (format: postgresql://user:pass@host:5432/dbname)
39
- and paste it as the DATABASE_URL secret.
40
 
41
  ## Quick Start
42
 
@@ -55,7 +55,6 @@ print(response.choices[0].message.content)
55
 
56
  ## Notes
57
 
58
- - DATABASE_URL is used by LiteLLM internally for model registration
59
- - Your LLM provider API keys are stored encrypted in DB via LITELLM_SALT_KEY
60
- - Set Space visibility to Private for production use
61
- - Replace the GitHub link above with your actual repository URL
 
1
  -----
2
 
3
  ## title: AI Gateway Hub
4
+ emoji: 🚀
5
  colorFrom: green
6
  colorTo: blue
7
  sdk: docker
 
19
 
20
  Go to **Space Settings -> Repository secrets** and add:
21
 
22
+ |Secret |Required|Description |
23
+ |--------------------|--------|---------------------------------------------------------|
24
+ |`DATABASE_URL` |YES |PostgreSQL direct connection URL (not transaction pooler)|
25
+ |`LITELLM_MASTER_KEY`|YES |Admin key e.g. `sk-gateway-xxxx` |
26
+ |`LITELLM_SALT_KEY` |YES |Encrypts stored API keys. Never change after first use |
27
+ |`JWT_SECRET` |YES |Session secret (random string) |
28
+ |`GATEWAY_PUBLIC_URL`|YES |`https://username-space-name.hf.space` |
29
 
30
  ### Free PostgreSQL Providers
31
 
 
35
  |Supabase|500 MB |https://supabase.com|
36
  |Railway |$5 credit|https://railway.app |
37
 
38
+ Use **Direct connection** (port 5432), NOT transaction pooler (port 6432).
39
+ LiteLLM uses prepared statements which are incompatible with transaction pooling.
40
 
41
  ## Quick Start
42
 
 
55
 
56
  ## Notes
57
 
58
+ - `DATABASE_URL` is used by LiteLLM internally for dynamic model registration
59
+ - Your LLM provider API keys are stored encrypted in DB via `LITELLM_SALT_KEY`
60
+ - Set Space visibility to Private for production use