proxitor 0.16.0 → 0.18.0
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 +6 -2
- package/dist/cli.mjs +789 -147
- package/dist/cli.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -149,12 +149,14 @@ proxitor doctor # checks environment, config, key, network, port, version
|
|
|
149
149
|
|
|
150
150
|
It prints a clear report and exits non-zero if anything fails — handy from CI too (`--json`, `--offline`, `--timeout`).
|
|
151
151
|
|
|
152
|
-
While proxitor runs, it
|
|
152
|
+
While proxitor runs, it prints a classified per-request cache line — `HIT` / `PARTIAL` / `MISS` / `COLD` / `NOUSAGE`, the hit percentage, the provider that served the request, and the request type (`[main]`/`[side]`) — so you can see at a glance whether caching is actually helping:
|
|
153
153
|
|
|
154
154
|
```text
|
|
155
|
-
[
|
|
155
|
+
[a1b2] HIT 99% read 48640 in 48874 glm-4.5-air [main]
|
|
156
156
|
```
|
|
157
157
|
|
|
158
|
+
See **Configuration → [Cache observability](./docs/configuration.md#cache-observability)** for the full label reference, the `observability:` config block, and enriched dumps.
|
|
159
|
+
|
|
158
160
|
Quick health poke: `curl http://localhost:8828/health`.
|
|
159
161
|
|
|
160
162
|
### Tuning the cache
|
|
@@ -195,6 +197,8 @@ Common flags: `--port`, `--host`, `--config <path>`, `--openrouter-key <key>` /
|
|
|
195
197
|
|
|
196
198
|
**Anthropic returns `400` about mixed TTLs when `cacheControlTtl: 1h`.** Set `rewriteBlockTtl: auto` (or `always`) to normalize the client's block-level `cache_control` breakpoints to the same TTL — see the [configuration reference](./docs/configuration.md#prompt-caching).
|
|
197
199
|
|
|
200
|
+
**OpenRouter returns `400 invalid_prompt | Invalid Responses API request` on `/v1/responses`.** Some clients send Responses `input` items without the `type` field OpenRouter requires. `normalizeResponses: auto` (the default) tags them, lifts `role:"system"` into `instructions`, and adds the `id`/`status` OpenRouter wants on assistant history. Set it to `skip` only for raw passthrough.
|
|
201
|
+
|
|
198
202
|
**The provider keeps switching between requests.** Make sure `sessionId` is not `skip` — both `auto` (default) and `always` inject a sticky session ID; without it OpenRouter only pins after the first cache hit.
|
|
199
203
|
|
|
200
204
|
**Config edits don't take effect.** They should — proxitor hot-reloads on save. If the file is invalid the proxy keeps the last valid config; `proxitor config validate` shows what was rejected.
|