copilot-relay 0.5.0 → 0.5.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 +1 -1
- package/config.default.yaml +9 -1
- package/dist/main.js +1306 -111
- package/dist/main.js.map +1 -1
- package/package.json +4 -2
- package/vendor/codex/LICENSE +201 -0
- package/vendor/codex/NOTICE +6 -0
- package/vendor/codex/README.md +15 -0
- package/vendor/codex/models.json +1602 -0
- package/vendor/codex/prompt.md +275 -0
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
[](https://gitdiagram.com/d0n9x1n/copilot-relay/video)
|
|
11
11
|
|
|
12
12
|
- **Claude Code, familiar workflow** — Messages API compatibility, streaming responses, and tool calls.
|
|
13
|
-
- **Codex CLI and the Codex app** —
|
|
13
|
+
- **Codex CLI and the Codex app** — set up on start with no ChatGPT sign-in, offering the same GPT-6 Astra and Opus 5.5 as Claude Code; [details](wiki/EN-Codex.md) · [中文](wiki/ZH-Codex.md).
|
|
14
14
|
- **WebSearch that fits the conversation** — relay-managed search, followed by an answer that can still use your tools.
|
|
15
15
|
- **Your models, your settings** — configurable GPT/Opus routes and reasoning effort; existing selections survive upgrades.
|
|
16
16
|
- **Use the advertised capacity** — discovered context/output limits, without silently shortening your input.
|
package/config.default.yaml
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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
5
|
# Valid complete edits hot-reload without rewriting this file.
|
|
6
|
-
# host, port, claudeSetup, and upstreamProxy require restart.
|
|
6
|
+
# host, port, claudeSetup, codexSetup, and upstreamProxy 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:
|
|
@@ -43,6 +43,14 @@ upstreamProxy:
|
|
|
43
43
|
# CLAUDE_CODE_AUTO_MODE_SERVER=0, when not already set.
|
|
44
44
|
claudeSetup: true
|
|
45
45
|
|
|
46
|
+
# When true, start sets up Codex CLI and the Codex app when Codex is installed
|
|
47
|
+
# ($CODEX_HOME, default ~/.codex, exists). It writes ~/.copilot-relay/codex-models.json,
|
|
48
|
+
# a model list holding only gptModel and opusModel, and points config.toml at this
|
|
49
|
+
# relay: model_provider, model_catalog_json, model (kept when it is one of the two),
|
|
50
|
+
# and the [model_providers.copilot-relay] table, with apiKey sent as x-api-key when
|
|
51
|
+
# set. Codex then needs no ChatGPT sign-in. Other keys and tables are left as they are.
|
|
52
|
+
codexSetup: true
|
|
53
|
+
|
|
46
54
|
# Log verbosity:
|
|
47
55
|
# error - startup/preflight/request failures only
|
|
48
56
|
# info - errors plus status, model/effort and semantic completion summaries
|