freellm 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# FreeLLM
|
|
2
2
|
|
|
3
3
|
**One OpenAI-compatible endpoint. 15+ free LLM providers. No billing.**
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@ Aggregate the free tiers from Google, Groq, Cerebras, Mistral, OpenRouter, GitHu
|
|
|
7
7
|
## Quick start
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npx
|
|
10
|
+
npx freellm
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
That's it. Opens a dashboard at `http://localhost:3000`.
|
|
@@ -23,7 +23,7 @@ from openai import OpenAI
|
|
|
23
23
|
|
|
24
24
|
client = OpenAI(
|
|
25
25
|
base_url="http://localhost:3000/v1",
|
|
26
|
-
api_key="
|
|
26
|
+
api_key="freellm-your-unified-key",
|
|
27
27
|
)
|
|
28
28
|
|
|
29
29
|
resp = client.chat.completions.create(
|
|
@@ -36,7 +36,7 @@ print("Routed via:", resp.headers.get("x-routed-via"))
|
|
|
36
36
|
|
|
37
37
|
```bash
|
|
38
38
|
curl http://localhost:3000/v1/chat/completions \
|
|
39
|
-
-H "Authorization: Bearer
|
|
39
|
+
-H "Authorization: Bearer freellm-your-unified-key" \
|
|
40
40
|
-H "Content-Type: application/json" \
|
|
41
41
|
-d '{"model": "auto", "messages": [{"role": "user", "content": "hi"}]}'
|
|
42
42
|
```
|
|
@@ -72,13 +72,13 @@ curl http://localhost:3000/v1/chat/completions \
|
|
|
72
72
|
## Options
|
|
73
73
|
|
|
74
74
|
```bash
|
|
75
|
-
npx
|
|
76
|
-
npx
|
|
75
|
+
npx freellm --port 8080 # custom port (default: 3000)
|
|
76
|
+
npx freellm --no-open # don't open browser automatically
|
|
77
77
|
```
|
|
78
78
|
|
|
79
79
|
## Data storage
|
|
80
80
|
|
|
81
|
-
All data (database + encryption key) is stored in `~/.
|
|
81
|
+
All data (database + encryption key) is stored in `~/.freellm/`.
|
|
82
82
|
|
|
83
83
|
## Requirements
|
|
84
84
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "freellm",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "One OpenAI-compatible endpoint for 15+ free LLM providers. Smart routing, failover, encrypted keys. Run with npx freellm.",
|
|
5
5
|
"keywords": ["llm", "openai", "proxy", "groq", "gemini", "mistral", "free", "api-gateway"],
|
|
6
6
|
"author": "",
|