Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ A thrown error with `status` 401/402/403, or a 429 or 400 that mentions credits

| Variable | Default | |
|---|---|---|
| `C0MPUTE_API_KEY` | none | Infernet trusted-client key (`ifc_...`), one per app. Without it the public limit is 20 requests an hour per IP. |
| `C0MPUTE_API_KEY` | none | Infernet **account** key (`ik_live_...`), billed per job. An `ifc_` trusted-client key without an end-user subject, or no key at all, gets the free tier of 10 queries a day. |
| `C0MPUTE_URL` | `https://infernetprotocol.com` | |
| `C0MPUTE_MODELS` | `huihui_ai/qwen3.5-abliterated:9b,qwen2.5:7b,qwen3:4b,gemma3:4b,huihui_ai/qwen3.5-abliterated:4b` | Tried in order. The first is an Infernet house model every node pulls. |
| `C0MPUTE_ANY_MODEL` | off | Let any free node answer as a last resort. Small models write junk JSON. |
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@profullstack/ai-providers",
"version": "0.1.1",
"version": "0.1.2",
"type": "module",
"description": "One text-model call for every Profullstack app: c0mpute first, OpenAI and Anthropic as alternating fallbacks, dead keys parked. Zero dependencies.",
"keywords": [
Expand Down
5 changes: 3 additions & 2 deletions src/c0mpute.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
* -> {jobId, source, model}
* GET /api/chat/stream/<jobId> server-sent events: meta, token..., done | error
*
* Without a key the public playground allows 20 requests an hour per IP. A
* trusted-client key (`ifc_...`, one per app) has its own budget.
* Use an account key (`ik_live_...`): it is billed per job with no daily cap.
* With no key, or a trusted-client key (`ifc_...`) that names no end user, the
* caller gets the free tier of 10 queries a day.
*
* `p2p_only` (default on) stops Infernet handing the job to its billed hosted
* fallback; an answer from anything but a peer node is refused.
Expand Down
5 changes: 3 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ const num = (v) => (v == null || v === '' || Number.isNaN(Number(v)) ? undefined
/**
* Builds the router from the environment.
*
* C0MPUTE_API_KEY Infernet trusted-client key (ifc_...). Without it the
* public limit of 20 requests an hour per IP applies.
* C0MPUTE_API_KEY Infernet account key (ik_live_...), billed per job. No
* key, or an ifc_ key with no subject, gets 10 free
* queries a day.
* C0MPUTE_URL default https://infernetprotocol.com
* C0MPUTE_MODELS comma list, tried in order (C0MPUTE_MODEL also read)
* C0MPUTE_ANY_MODEL 1 to let any free node answer as a last resort
Expand Down
Loading