copilot-relay 0.0.7 → 0.0.9
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 +8 -1
- package/config.default.yaml +3 -0
- package/dist/main.js +515 -116
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -44,6 +44,7 @@ Routing:
|
|
|
44
44
|
```sh
|
|
45
45
|
npx copilot-relay@latest auth
|
|
46
46
|
npx copilot-relay@latest start
|
|
47
|
+
npx copilot-relay@latest restart
|
|
47
48
|
```
|
|
48
49
|
|
|
49
50
|
`start` writes `ANTHROPIC_BASE_URL` and a dummy `ANTHROPIC_AUTH_TOKEN` into `~/.claude/settings.json`.
|
|
@@ -60,6 +61,7 @@ claudeSetup: true
|
|
|
60
61
|
logLevel: info
|
|
61
62
|
logRetentionDays: 3
|
|
62
63
|
thinkEffort: xhigh
|
|
64
|
+
upstreamTimeoutSeconds: 180
|
|
63
65
|
webSearchBackend:
|
|
64
66
|
```
|
|
65
67
|
|
|
@@ -68,13 +70,17 @@ webSearchBackend:
|
|
|
68
70
|
| Level | Logs |
|
|
69
71
|
| --- | --- |
|
|
70
72
|
| `error` | Startup, preflight, and request failures |
|
|
71
|
-
| `info` | Errors plus startup status, preflight status, and local HTTP status codes |
|
|
73
|
+
| `info` | Errors plus startup status, preflight status, request IDs, upstream lifecycle, and local HTTP status codes |
|
|
72
74
|
| `debug` | Info plus model routing summaries, Copilot upstream timings, and request payloads |
|
|
73
75
|
|
|
74
76
|
Any other `logLevel` value is invalid and stops startup.
|
|
75
77
|
|
|
76
78
|
Valid `thinkEffort`: `none`, `low`, `medium`, `high`, `xhigh`.
|
|
77
79
|
|
|
80
|
+
`upstreamTimeoutSeconds` controls the maximum time a single Claude request can
|
|
81
|
+
spend waiting on upstream Copilot calls, including chat, Responses, preflight,
|
|
82
|
+
and bridge-managed WebSearch calls. The default is `180`.
|
|
83
|
+
|
|
78
84
|
`webSearchBackend` controls bridge-managed Claude WebSearch. Leave it empty to
|
|
79
85
|
use `gptModel`, or set a Copilot Responses model ID such as `gpt-5.5`.
|
|
80
86
|
|
|
@@ -85,6 +91,7 @@ The same folder stores `copilot_token.json` for the cached Copilot bearer token,
|
|
|
85
91
|
```sh
|
|
86
92
|
copilot-relay auth
|
|
87
93
|
copilot-relay start
|
|
94
|
+
copilot-relay restart
|
|
88
95
|
```
|
|
89
96
|
|
|
90
97
|
## Logging
|
package/config.default.yaml
CHANGED
|
@@ -35,6 +35,9 @@ logRetentionDays: 3
|
|
|
35
35
|
# Valid values: none, low, medium, high, xhigh.
|
|
36
36
|
thinkEffort: xhigh
|
|
37
37
|
|
|
38
|
+
# Max seconds to wait for one Claude request's upstream Copilot calls.
|
|
39
|
+
upstreamTimeoutSeconds: 180
|
|
40
|
+
|
|
38
41
|
# Copilot model used for bridge-managed Claude WebSearch.
|
|
39
42
|
# Leave empty to use gptModel.
|
|
40
43
|
webSearchBackend:
|