@christiandoxa/prodex 0.187.0 → 0.189.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 +14 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -65,6 +65,19 @@ Prodex supports two provider paths:
|
|
|
65
65
|
| Local OpenAI-compatible | `prodex super --url http://127.0.0.1:8131` | Local server auth/config | Health snapshot | `prodex quota --all --provider local --base-url ...` checks the local `/models` endpoint. |
|
|
66
66
|
| Bedrock / custom Codex `model_provider` | `prodex run` / `prodex caveman` direct pass-through | Codex-owned config | Config snapshot | Prodex reports configured provider metadata; provider-side quota stays owned by Codex/upstream. |
|
|
67
67
|
|
|
68
|
+
`prodex gateway` exposes the provider bridge as a standalone OpenAI-compatible service for non-Codex clients:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
PRODEX_GATEWAY_TOKEN=change-me GEMINI_API_KEY=... prodex gateway --provider gemini
|
|
72
|
+
auth_header="Authorization: Bearer $PRODEX_GATEWAY_TOKEN"
|
|
73
|
+
curl http://127.0.0.1:4000/v1/responses \
|
|
74
|
+
-H "$auth_header" \
|
|
75
|
+
-H "Content-Type: application/json" \
|
|
76
|
+
-d '{"model":"prodex-fast","input":"hello"}'
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
The gateway serves `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, `/v1/images/*`, `/v1/audio/*`, `/v1/batches`, `/v1/rerank`, `/v1/a2a`, `/v1/messages`, and `/v1/models` where the selected upstream supports them. It adds `x-prodex-call-id` to responses, writes local request detail plus `gateway_spend` events to runtime logs, can export those events to JSONL or HTTP using generic, OTel, Datadog, or Langfuse-shaped payloads, supports policy-defined routing strategies (`fallback`, `round-robin`, `least-busy`, `lowest-cost`, `lowest-latency`, `rpm`, `tpm`, `first`) for model aliases/fallback chains, and can apply keyword/model, Presidio, and external webhook guardrails before calls and on outputs. Configure defaults under `[gateway]` in `policy.toml`.
|
|
80
|
+
|
|
68
81
|
<details>
|
|
69
82
|
<summary>Provider behavior details</summary>
|
|
70
83
|
|
|
@@ -123,6 +136,7 @@ prodex tokensavior
|
|
|
123
136
|
prodex clawcompactor
|
|
124
137
|
prodex presidio doctor
|
|
125
138
|
prodex presidio redact --text "My phone is 212-555-1234"
|
|
139
|
+
prodex gateway --provider gemini
|
|
126
140
|
prodex s
|
|
127
141
|
prodex super
|
|
128
142
|
prodex claude mem
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@christiandoxa/prodex",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.189.0",
|
|
4
4
|
"description": "Safe multi-account auto-rotate for Codex CLI with isolated CODEX_HOME profiles",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"bin": {
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
"@openai/codex": "latest"
|
|
17
17
|
},
|
|
18
18
|
"optionalDependencies": {
|
|
19
|
-
"@christiandoxa/prodex-linux-x64": "0.
|
|
20
|
-
"@christiandoxa/prodex-linux-arm64": "0.
|
|
21
|
-
"@christiandoxa/prodex-darwin-x64": "0.
|
|
22
|
-
"@christiandoxa/prodex-darwin-arm64": "0.
|
|
23
|
-
"@christiandoxa/prodex-win32-x64": "0.
|
|
24
|
-
"@christiandoxa/prodex-win32-arm64": "0.
|
|
19
|
+
"@christiandoxa/prodex-linux-x64": "0.189.0",
|
|
20
|
+
"@christiandoxa/prodex-linux-arm64": "0.189.0",
|
|
21
|
+
"@christiandoxa/prodex-darwin-x64": "0.189.0",
|
|
22
|
+
"@christiandoxa/prodex-darwin-arm64": "0.189.0",
|
|
23
|
+
"@christiandoxa/prodex-win32-x64": "0.189.0",
|
|
24
|
+
"@christiandoxa/prodex-win32-arm64": "0.189.0"
|
|
25
25
|
},
|
|
26
26
|
"engines": {
|
|
27
27
|
"node": ">=18"
|