@jeffreycao/copilot-api 2.7.33 → 2.7.35
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 +4 -4
- package/README.zh-CN.md +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<a href="https://www.npmjs.com/package/@jeffreycao/copilot-api"><img src="https://img.shields.io/npm/v/@jeffreycao/copilot-api.svg" alt="npm version"></a>
|
|
15
15
|
<a href="https://github.com/caozhiyuan/copilot-api/blob/dev/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License"></a>
|
|
16
16
|
<a href="https://github.com/caozhiyuan/copilot-api/stargazers"><img src="https://img.shields.io/github/stars/caozhiyuan/copilot-api.svg" alt="GitHub stars"></a>
|
|
17
|
-
<a href="https://bun.sh"><img src="https://img.shields.io/badge/Bun-%3E%3D1.4.
|
|
17
|
+
<a href="https://bun.sh"><img src="https://img.shields.io/badge/Bun-%3E%3D1.4.4-orange.svg" alt="Bun >= 1.4.4"></a>
|
|
18
18
|
<a href="https://nodejs.org"><img src="https://img.shields.io/badge/Node-%3E%3D22.13.0-green.svg" alt="Node >= 22.13.0"></a>
|
|
19
19
|
</p>
|
|
20
20
|
|
|
@@ -34,7 +34,7 @@ Copilot API is a local AI gateway that connects Claude Code, OpenCode, Codex, an
|
|
|
34
34
|
|
|
35
35
|
## Quick Start
|
|
36
36
|
|
|
37
|
-
Requires **Node.js >= 22.13.0** (npx) or **Bun >= 1.4.
|
|
37
|
+
Requires **Node.js >= 22.13.0** (npx) or **Bun >= 1.4.4**. A Copilot subscription is needed only for the GitHub Copilot provider; other configured providers can run independently.
|
|
38
38
|
|
|
39
39
|
```sh
|
|
40
40
|
npx @jeffreycao/copilot-api@latest start
|
|
@@ -46,7 +46,7 @@ The server listens on `http://localhost:4141` by default. Optionally authenticat
|
|
|
46
46
|
npx @jeffreycao/copilot-api@latest auth login
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
Alternatively, run with Bun >= 1.4.
|
|
49
|
+
Alternatively, run with Bun >= 1.4.4, which can offer better performance:
|
|
50
50
|
|
|
51
51
|
```sh
|
|
52
52
|
bunx --bun @jeffreycao/copilot-api start
|
|
@@ -55,7 +55,7 @@ bunx --bun @jeffreycao/copilot-api start
|
|
|
55
55
|
Use `--bun` to select the Bun runtime and omit `@latest` for routine starts to reuse the cache. See [Bun setup](docs/guides/en/getting-started.md#using-with-bun) for global installation and upgrades.
|
|
56
56
|
|
|
57
57
|
> [!NOTE]
|
|
58
|
-
> To trust system-installed CA certificates (for example, behind a corporate HTTPS proxy), `npx` needs no extra configuration: Node.js >= 22.19.0 merges the system CA store at startup through [`tls.setDefaultCACertificates()`](https://nodejs.org/api/tls.html#tlssetdefaultcacertificatescerts). Only Bun requires `NODE_USE_SYSTEM_CA=1` before `bunx --bun`: `export NODE_USE_SYSTEM_CA=1` in bash/zsh, or `$env:NODE_USE_SYSTEM_CA="1"` in PowerShell (Bun >= 1.4.
|
|
58
|
+
> To trust system-installed CA certificates (for example, behind a corporate HTTPS proxy), `npx` needs no extra configuration: Node.js >= 22.19.0 merges the system CA store at startup through [`tls.setDefaultCACertificates()`](https://nodejs.org/api/tls.html#tlssetdefaultcacertificatescerts). Only Bun requires `NODE_USE_SYSTEM_CA=1` before `bunx --bun`: `export NODE_USE_SYSTEM_CA=1` in bash/zsh, or `$env:NODE_USE_SYSTEM_CA="1"` in PowerShell (Bun >= 1.4.4).
|
|
59
59
|
> Desktop enables the variable for server subprocesses by default, preserving explicit environment settings.
|
|
60
60
|
|
|
61
61
|
Verify the gateway is up:
|
package/README.zh-CN.md
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<a href="https://www.npmjs.com/package/@jeffreycao/copilot-api"><img src="https://img.shields.io/npm/v/@jeffreycao/copilot-api.svg" alt="npm version"></a>
|
|
15
15
|
<a href="https://github.com/caozhiyuan/copilot-api/blob/dev/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License"></a>
|
|
16
16
|
<a href="https://github.com/caozhiyuan/copilot-api/stargazers"><img src="https://img.shields.io/github/stars/caozhiyuan/copilot-api.svg" alt="GitHub stars"></a>
|
|
17
|
-
<a href="https://bun.sh"><img src="https://img.shields.io/badge/Bun-%3E%3D1.4.
|
|
17
|
+
<a href="https://bun.sh"><img src="https://img.shields.io/badge/Bun-%3E%3D1.4.4-orange.svg" alt="Bun >= 1.4.4"></a>
|
|
18
18
|
<a href="https://nodejs.org"><img src="https://img.shields.io/badge/Node-%3E%3D22.13.0-green.svg" alt="Node >= 22.13.0"></a>
|
|
19
19
|
</p>
|
|
20
20
|
|
|
@@ -38,7 +38,7 @@ Copilot API 是一个本地 AI 网关,让 Claude Code、OpenCode、Codex 等
|
|
|
38
38
|
|
|
39
39
|
## 快速开始
|
|
40
40
|
|
|
41
|
-
需要 **Node.js >= 22.13.0**(npx)或 **Bun >= 1.4.
|
|
41
|
+
需要 **Node.js >= 22.13.0**(npx)或 **Bun >= 1.4.4**。使用 GitHub Copilot 时需要相应订阅;也可以配置其他 provider 独立运行。
|
|
42
42
|
|
|
43
43
|
```sh
|
|
44
44
|
npx @jeffreycao/copilot-api@latest start
|
|
@@ -50,7 +50,7 @@ npx @jeffreycao/copilot-api@latest start
|
|
|
50
50
|
npx @jeffreycao/copilot-api@latest auth login
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
-
也可以使用 Bun >= 1.4.
|
|
53
|
+
也可以使用 Bun >= 1.4.4 运行,可获得更好的性能:
|
|
54
54
|
|
|
55
55
|
```sh
|
|
56
56
|
bunx --bun @jeffreycao/copilot-api start
|
|
@@ -59,7 +59,7 @@ bunx --bun @jeffreycao/copilot-api start
|
|
|
59
59
|
`--bun` 用于选择 Bun 运行时,日常启动省略 `@latest` 以复用缓存。全局安装与升级方式见 [Bun 使用说明](docs/guides/zh-CN/getting-started.md#using-with-bun)。
|
|
60
60
|
|
|
61
61
|
> [!NOTE]
|
|
62
|
-
> 如需信任系统安装的 CA 证书(例如使用企业 HTTPS 代理时),`npx` 无需额外设置:Node.js >= 22.19.0 启动时会通过 [`tls.setDefaultCACertificates()`](https://nodejs.org/api/tls.html#tlssetdefaultcacertificatescerts) 自动合并系统 CA 证书。只有 Bun 需要在运行 `bunx --bun` 前设置 `NODE_USE_SYSTEM_CA=1`:bash/zsh 使用 `export NODE_USE_SYSTEM_CA=1`,PowerShell 使用 `$env:NODE_USE_SYSTEM_CA="1"`(Bun >= 1.4.
|
|
62
|
+
> 如需信任系统安装的 CA 证书(例如使用企业 HTTPS 代理时),`npx` 无需额外设置:Node.js >= 22.19.0 启动时会通过 [`tls.setDefaultCACertificates()`](https://nodejs.org/api/tls.html#tlssetdefaultcacertificatescerts) 自动合并系统 CA 证书。只有 Bun 需要在运行 `bunx --bun` 前设置 `NODE_USE_SYSTEM_CA=1`:bash/zsh 使用 `export NODE_USE_SYSTEM_CA=1`,PowerShell 使用 `$env:NODE_USE_SYSTEM_CA="1"`(Bun >= 1.4.4)。
|
|
63
63
|
> Desktop 默认对子进程启用此设置,并保留显式配置的环境变量。
|
|
64
64
|
|
|
65
65
|
验证网关已启动:
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@jeffreycao/copilot-api",
|
|
4
|
-
"version": "2.7.
|
|
4
|
+
"version": "2.7.35",
|
|
5
5
|
"description": "GitHub Copilot, OpenAI Codex, OpenCode Go, and third-party AI provider gateway with OpenAI and Anthropic API compatibility.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"github-copilot",
|