copilot-relay 0.3.10 → 0.4.1

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 CHANGED
@@ -13,12 +13,11 @@
13
13
  - **WebSearch that fits the conversation** — relay-managed search, followed by an answer that can still use your tools.
14
14
  - **Your models, your settings** — configurable GPT/Opus routes and reasoning effort; existing selections survive upgrades.
15
15
  - **Use the advertised capacity** — discovered context/output limits, without silently shortening your input.
16
- - **Know what works** — model discovery and opt-in per-model deep checks with clear results.*
16
+ - **Know what works** — model discovery and opt-in per-model deep checks with clear results.
17
+ - **Choose Claude's upstream protocol** — `claudeUpstreamApi: chat-completions` stays the default; opt into `auto` or `messages` for native Claude transport.
18
+ - **Diagnose offline** — debug mode captures full observed bodies for `copilot-relay replay`; captures contain unredacted prompts and must never be shared wholesale.
17
19
  - **Run it your way** — foreground CLI or background service on macOS, Windows, and Linux.
18
20
 
19
- \* Model discovery, deep checks, and the Opus 5.5 fresh-install default require
20
- **v0.3.10 or later**.
21
-
22
21
  ## Quick start
23
22
 
24
23
  You need **Node.js 22+**, **Claude Code**, and a GitHub account with Copilot access
@@ -42,7 +41,7 @@ Configuration lives in `~/.copilot-relay/config.yaml`. Model access depends on y
42
41
  account and organization policy; if startup rejects a model, choose an available
43
42
  one using the [configuration guide](wiki/EN-Configuration.md).
44
43
 
45
- Discover models and optionally test one (v0.3.10+):
44
+ Discover models and optionally test one:
46
45
 
47
46
  ```sh
48
47
  copilot-relay models
@@ -2,8 +2,8 @@
2
2
  #
3
3
  # This file is copied to ~/.copilot-relay/config.yaml on first start.
4
4
  # Edit the user config file, not this template, for local changes.
5
- # Most values hot-reload while the service is running. host and port still
6
- # require restart because the listening socket is already bound.
5
+ # Valid complete edits hot-reload without rewriting this file.
6
+ # host, port, and claudeSetup require restart.
7
7
  #
8
8
  # Values here apply to a fresh install only. copilot-relay writes the resolved
9
9
  # config back to disk, so once a key exists in your config.yaml it is yours:
@@ -26,13 +26,12 @@ claudeSetup: true
26
26
 
27
27
  # Log verbosity:
28
28
  # error - startup/preflight/request failures only
29
- # info - error logs plus startup/preflight status, model/effort summaries,
30
- # and local HTTP status codes
31
- # debug - info logs plus detailed Copilot timings and request payloads
29
+ # info - errors plus status, model/effort and semantic completion summaries
30
+ # debug - info plus full private bodies in ~/.copilot-relay/captures; may contain secrets
32
31
  # Any other value is invalid and stops startup.
33
32
  logLevel: info
34
33
 
35
- # Number of days to keep files in ~/.copilot-relay/logs.
34
+ # Number of days to keep relay logs and settled debug captures.
36
35
  # Counted in local calendar days: 3 keeps today plus the previous two days.
37
36
  # The active log file is copilot-relay.<local-date>.log and rotates at local
38
37
  # midnight, which is what makes this setting take effect at all.
@@ -52,6 +51,11 @@ upstreamTimeoutSeconds: 180
52
51
  # Leave empty to use gptModel.
53
52
  webSearchBackend:
54
53
 
54
+ # Claude upstream protocol: auto selects advertised native Messages support.
55
+ # Keep the proven chat route until native cache non-regression is measured.
56
+ # Explicit alternatives: auto, messages.
57
+ claudeUpstreamApi: chat-completions
58
+
55
59
  # Model routing: requests containing "opus" use opusModel; all others use gptModel.
56
60
  #
57
61
  # Upstream Copilot model used for non-Opus requests.