copilot-relay 0.3.5 → 0.3.7

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
@@ -75,7 +75,17 @@ With `claudeSetup: true`, `start` manages `ANTHROPIC_BASE_URL`, a dummy
75
75
  `ANTHROPIC_AUTH_TOKEN` when auth is absent, and the configured GPT default via
76
76
  the top-level `model` field in `~/.claude/settings.json`. Exact
77
77
  `gpt-6-astra` and `gpt-5.6-sol` overrides are normalized to Claude-facing
78
- `[1m]` identities; unrelated model choices are preserved.
78
+ `[1m]` identities when discovery reports exactly 1M; other reported windows use
79
+ plain GPT IDs with Claude's numeric context setting. Unrelated model choices and
80
+ existing token-budget overrides are preserved.
81
+
82
+ Startup retains Copilot's actual context, prompt, and output limits and exposes
83
+ them on `GET /v1/models`. Managed Claude setup seeds
84
+ `CLAUDE_CODE_MAX_CONTEXT_TOKENS` and `CLAUDE_CODE_MAX_OUTPUT_TOKENS` when absent.
85
+ The default models support 1M total context, with up to 128K output tokens for
86
+ Astra and 64K for Opus. Input text is never shortened; smaller explicit output
87
+ budgets remain respected. See [full-context configuration](wiki/EN-Configuration.md)
88
+ for existing/manual Claude setups and the limits on input plus output.
79
89
 
80
90
  ## Config
81
91
 
@@ -113,10 +123,16 @@ for live model discovery, compatible thinking efforts, and copy-paste updates.
113
123
  Any other `logLevel` value is invalid and stops startup.
114
124
 
115
125
  Valid `thinkEffort`: `none`, `low`, `medium`, `high`, `xhigh`, `max`.
126
+ It is a fallback, not a forced override: Claude Code's `output_config.effort`
127
+ wins, followed by the legacy `reasoning_effort` field, then `thinkEffort` when
128
+ neither request field supplies a value. The selected effort is preserved through
129
+ all model and WebSearch passes; existing config values are not rewritten.
116
130
 
117
131
  `upstreamTimeoutSeconds` controls the maximum time a single Claude request can
118
132
  spend waiting on upstream Copilot calls, including chat, Responses, preflight,
119
- and bridge-managed WebSearch calls. The default is `180`.
133
+ and bridge-managed WebSearch calls. The default is `180`. Set `0` to disable the
134
+ relay deadline for very long requests; client cancellation and provider/transport
135
+ timeouts still apply. Existing saved timeouts are never changed by an upgrade.
120
136
 
121
137
  `webSearchBackend` controls bridge-managed Claude WebSearch. Leave it empty to
122
138
  use `gptModel`, or set a Copilot Responses model ID such as `gpt-5.5`.
@@ -21,6 +21,7 @@ copilotBaseUrl: https://api.githubcopilot.com
21
21
 
22
22
  # When true, start updates ~/.claude/settings.json with ANTHROPIC_BASE_URL
23
23
  # and a dummy ANTHROPIC_AUTH_TOKEN so Claude Code can use this proxy.
24
+ # Also seeds context/output budgets from model discovery when not already set.
24
25
  claudeSetup: true
25
26
 
26
27
  # Log verbosity:
@@ -38,11 +39,14 @@ logLevel: info
38
39
  # midnight, which is what makes this setting take effect at all.
39
40
  logRetentionDays: 3
40
41
 
41
- # Default upstream thinking/reasoning effort sent to Copilot.
42
+ # Fallback upstream effort when Claude Code does not specify one.
43
+ # Request output_config.effort wins, followed by legacy reasoning_effort.
42
44
  # Valid values: none, low, medium, high, xhigh, max.
43
45
  thinkEffort: max
44
46
 
45
47
  # Max seconds to wait for one Claude request's upstream Copilot calls.
48
+ # Set 0 to disable the relay deadline for very long requests. Client cancellation
49
+ # and upstream/provider limits still apply.
46
50
  upstreamTimeoutSeconds: 180
47
51
 
48
52
  # Copilot model used for bridge-managed Claude WebSearch.