@pikoloo/codex-proxy 1.0.7 → 1.1.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/docs/API.md +0 -15
- package/images/dashboard-screenshot.png +0 -0
- package/images/readme-cover.png +0 -0
- package/images/settings-screenshot.png +0 -0
- package/package.json +10 -3
- package/public/css/style.css +832 -22
- package/public/index.html +149 -190
- package/public/js/app.js +119 -62
- package/src/account-rotation/index.js +64 -27
- package/src/index.js +1 -1
- package/src/routes/api-routes.js +0 -4
- package/src/routes/chat-route.js +1 -1
- package/src/routes/messages-route.js +14 -16
- package/src/routes/settings-route.js +1 -41
- package/src/server-settings.js +29 -30
- package/src/utils/logger.js +14 -1
- package/images/demo-screenshot.png +0 -0
- package/images/f757093f-507b-4453-994e-f8275f8b07a9.png +0 -0
- package/src/account-rotation/strategies/base-strategy.js +0 -48
- package/src/account-rotation/strategies/index.js +0 -31
- package/src/account-rotation/strategies/round-robin-strategy.js +0 -42
- package/src/account-rotation/strategies/sticky-strategy.js +0 -97
package/docs/API.md
CHANGED
|
@@ -115,21 +115,6 @@ Content-Type: application/json
|
|
|
115
115
|
}
|
|
116
116
|
```
|
|
117
117
|
|
|
118
|
-
### Account Selection Strategy
|
|
119
|
-
|
|
120
|
-
Requests use the active account only by default. Account rotation settings are inert unless `CODEX_CLAUDE_PROXY_ENABLE_MULTI_ACCOUNT_ROTATION=true` is set.
|
|
121
|
-
|
|
122
|
-
```bash
|
|
123
|
-
GET /settings/account-strategy
|
|
124
|
-
|
|
125
|
-
# Response
|
|
126
|
-
{
|
|
127
|
-
"success": true,
|
|
128
|
-
"accountStrategy": "sticky",
|
|
129
|
-
"rotationEnabled": false
|
|
130
|
-
}
|
|
131
|
-
```
|
|
132
|
-
|
|
133
118
|
### Switch Account
|
|
134
119
|
|
|
135
120
|
```bash
|
|
Binary file
|
package/images/readme-cover.png
CHANGED
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pikoloo/codex-proxy",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Local personal proxy for OpenAI Codex models with Claude API compatibility",
|
|
5
5
|
"author": "Suraj Mandal <surajmandalcell@gmail.com>",
|
|
6
6
|
"type": "module",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"accounts:list": "node src/cli/accounts.js list",
|
|
39
39
|
"accounts:remove": "node src/cli/accounts.js remove",
|
|
40
40
|
"accounts:verify": "node src/cli/accounts.js verify",
|
|
41
|
-
"build": "find src bin -name '*.js' -print0 | xargs -0 -n1 node --check",
|
|
41
|
+
"build": "find src bin scripts \\( -name '*.js' -o -name '*.mjs' \\) -print0 | xargs -0 -n1 node --check",
|
|
42
42
|
"test": "node --test tests/*.test.js",
|
|
43
43
|
"test:unit": "node --test tests/unit/*.test.js",
|
|
44
44
|
"test:all": "node --test tests/unit/*.test.js tests/*.test.js",
|
|
@@ -57,6 +57,13 @@
|
|
|
57
57
|
"path-to-regexp": "0.1.13",
|
|
58
58
|
"qs": "6.15.2"
|
|
59
59
|
},
|
|
60
|
-
"keywords": [
|
|
60
|
+
"keywords": [
|
|
61
|
+
"codex",
|
|
62
|
+
"openai",
|
|
63
|
+
"proxy",
|
|
64
|
+
"claude",
|
|
65
|
+
"chatgpt",
|
|
66
|
+
"oauth"
|
|
67
|
+
],
|
|
61
68
|
"license": "MIT"
|
|
62
69
|
}
|