@rerouter/helper 0.1.1 → 0.1.2
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 +1 -1
- package/package.json +1 -1
- package/src/cli.js +1 -1
- package/src/lib/env.js +1 -1
package/README.md
CHANGED
|
@@ -94,7 +94,7 @@ The bridge runs on `127.0.0.1:8787` by default. Codex reads `env_key` from `RERO
|
|
|
94
94
|
| Variable | Description |
|
|
95
95
|
|----------|-------------|
|
|
96
96
|
| `REROUTER_API_KEY` | Your Rerouter API key (`sk-rr-...`). Required for `models`, `configure`, `check-key`. |
|
|
97
|
-
| `REROUTER_BASE_URL` | Override base URL (default: `https://api.rerouter.
|
|
97
|
+
| `REROUTER_BASE_URL` | Override base URL (default: `https://api.rerouter.dev`). |
|
|
98
98
|
|
|
99
99
|
## Examples
|
|
100
100
|
|
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -36,7 +36,7 @@ UI guide targets: ${GUIDE_TARGETS.join(", ")}
|
|
|
36
36
|
|
|
37
37
|
Env:
|
|
38
38
|
REROUTER_API_KEY Rerouter key (sk-rr-...). Never printed or written to any file.
|
|
39
|
-
REROUTER_BASE_URL Override base URL (default: https://api.rerouter.
|
|
39
|
+
REROUTER_BASE_URL Override base URL (default: https://api.rerouter.dev).
|
|
40
40
|
`;
|
|
41
41
|
|
|
42
42
|
function fail(err) {
|
package/src/lib/env.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* to any file.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
export const DEFAULT_BASE_URL = "https://api.rerouter.
|
|
7
|
+
export const DEFAULT_BASE_URL = "https://api.rerouter.dev";
|
|
8
8
|
|
|
9
9
|
export function baseUrl() {
|
|
10
10
|
return (process.env.REROUTER_BASE_URL?.trim() || DEFAULT_BASE_URL).replace(/\/+$/, "");
|