tunnelfetch 1.8.2 → 1.8.3
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 +9 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1093,10 +1093,15 @@ that are a footnote for a 4 MB page are the whole bill here.
|
|
|
1093
1093
|
Measured against a real streaming endpoint through a proxy, with the API's own `usage` block as the
|
|
1094
1094
|
token count rather than an estimate from response size:
|
|
1095
1095
|
|
|
1096
|
-
| | per event | per 1M output tokens |
|
|
1097
|
-
| --- | --- | --- |
|
|
1098
|
-
| this package | **250–310 µs** |
|
|
1099
|
-
| platform `fetch` — reference; it cannot use a proxy | ~105 µs | $
|
|
1096
|
+
| | per event | CPU per 1M output tokens | cost per 1M output tokens |
|
|
1097
|
+
| --- | --- | --- | --- |
|
|
1098
|
+
| this package | **250–310 µs** | 250–310 s | **$0.0050–0.0062** |
|
|
1099
|
+
| platform `fetch` — reference; it cannot use a proxy | ~105 µs | 105 s | $0.0021 |
|
|
1100
|
+
|
|
1101
|
+
Those are half a cent per million output tokens against **$0.60** of model charge for the same
|
|
1102
|
+
tokens. An earlier version of this table read "$5,000–6,200" — the same digits with the decimal
|
|
1103
|
+
point six places out, from writing a per-million-*requests* figure into a per-million-*tokens*
|
|
1104
|
+
column. The ratio quoted below was computed correctly and is unaffected; the table was not.
|
|
1100
1105
|
|
|
1101
1106
|
Events map to output tokens roughly 1:1, so a 128K-token completion is about **35 s of CPU**. That
|
|
1102
1107
|
is spread across the minutes the model takes to generate it — utilisation is 2–5%, so it is a
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tunnelfetch",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.3",
|
|
4
4
|
"description": "A fetch-shaped HTTP client that can route through HTTP CONNECT / HTTPS / SOCKS5 proxies on runtimes with only raw TCP, such as Cloudflare Workers. Implements TLS in userland because the runtime cannot verify a tunnelled peer.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fetch",
|