@jeffreycao/copilot-api 2.7.22 → 2.7.24
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 +3 -1
- package/README.zh-CN.md +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -67,7 +67,7 @@ curl http://localhost:4141/v1/models
|
|
|
67
67
|
> [!NOTE]
|
|
68
68
|
> Token usage storage requires Node.js >= 22.13.0 or Bun. See [Using with npx](docs/guides/en/getting-started.md#using-with-npx) for details.
|
|
69
69
|
|
|
70
|
-
From here, jump to the guide for your client: [Claude Code](docs/guides/en/claude-code.md#using-with-claude-code), [OpenCode](docs/guides/en/opencode.md#using-with-opencode), [Codex](docs/guides/en/codex.md#using-with-codex), or run it with [Docker](docs/guides/en/docker.md#using-with-docker).
|
|
70
|
+
From here, jump to the guide for your client: [Claude Code](docs/guides/en/claude-code.md#using-with-claude-code), [OpenCode](docs/guides/en/opencode.md#using-with-opencode), [Codex](docs/guides/en/codex.md#using-with-codex), [DeepSeek Harness](docs/guides/en/dsh.md#using-with-deepseek-harness), or run it with [Docker](docs/guides/en/docker.md#using-with-docker).
|
|
71
71
|
|
|
72
72
|
## Compatibility
|
|
73
73
|
|
|
@@ -80,6 +80,7 @@ Every client talks to the same local endpoint. The gateway routes each request t
|
|
|
80
80
|
| Claude Code | — | — | ✅ Native / Adapter | Anthropic Messages |
|
|
81
81
|
| OpenCode | ✅ Native | ✅ Native / Adapter | ✅ Native / Adapter via `@ai-sdk/anthropic` | Anthropic Messages |
|
|
82
82
|
| Codex | — | ✅ Native / Adapter | — | Responses |
|
|
83
|
+
| DeepSeek Harness | — | ✅ via `dsh-copilot-api` | ✅ via `dsh-copilot-api` | Responses |
|
|
83
84
|
| OpenAI-compatible clients | ✅ Native | ✅ Native / Adapter | — | Chat Completions |
|
|
84
85
|
| Anthropic-compatible clients | — | — | ✅ Native / Adapter | Anthropic Messages |
|
|
85
86
|
|
|
@@ -103,6 +104,7 @@ Windows x64 (`.exe`), macOS Apple Silicon (`.dmg`), and Linux x64 (`.AppImage`)
|
|
|
103
104
|
| [Installation and Startup](docs/guides/en/getting-started.md) | Prerequisites, project overview, `npx` and source runs, provider-only mode without Copilot, and gateway API key setup |
|
|
104
105
|
| [Claude Code](docs/guides/en/claude-code.md) | settings.json, gateway model discovery, model mappings, auto-compact window, and WebSearch behavior |
|
|
105
106
|
| [OpenCode](docs/guides/en/opencode.md) | v2 Responses plugin and automatic model discovery, native compaction, model capabilities and pricing, context limits, and v1 Anthropic SDK setup |
|
|
107
|
+
| [DeepSeek Harness](docs/guides/en/dsh.md) | Install `dsh-copilot-api`, save the gateway API key, and choose Responses or Messages |
|
|
106
108
|
| [Codex](docs/guides/en/codex.md) | A full `config.toml` provider block, `GITHUB_COPILOT_API_KEY` environment variable setup, auto-review model mapping, generating `model_catalog.json`, and the merged model picker catalog with protocol adapters |
|
|
107
109
|
| [Docker](docs/guides/en/docker.md) | Docker Compose quick start, the `/data` persistent mount and its ownership repair, supported environment variables, and host interface binding |
|
|
108
110
|
| [Desktop App](docs/guides/en/desktop.md) | Copilot sign-in, Codex OAuth account switching, API-key providers, one-click start / stop, shared model mappings, advanced settings, and per-platform installers |
|
package/README.zh-CN.md
CHANGED
|
@@ -71,7 +71,7 @@ curl http://localhost:4141/v1/models
|
|
|
71
71
|
> [!NOTE]
|
|
72
72
|
> token usage 存储需要 Node.js >= 22.13.0 或 Bun。详见[通过 npx 使用](docs/guides/zh-CN/getting-started.md#using-with-npx)。
|
|
73
73
|
|
|
74
|
-
接下来可按你的客户端选择指南:[与 Claude Code 一起使用](docs/guides/zh-CN/claude-code.md#using-with-claude-code)、[与 OpenCode 一起使用](docs/guides/zh-CN/opencode.md#using-with-opencode)、[与 Codex 一起使用](docs/guides/zh-CN/codex.md#using-with-codex),或通过 [Docker](docs/guides/zh-CN/docker.md#using-with-docker) 运行。
|
|
74
|
+
接下来可按你的客户端选择指南:[与 Claude Code 一起使用](docs/guides/zh-CN/claude-code.md#using-with-claude-code)、[与 OpenCode 一起使用](docs/guides/zh-CN/opencode.md#using-with-opencode)、[与 Codex 一起使用](docs/guides/zh-CN/codex.md#using-with-codex)、[与 DeepSeek Harness 一起使用](docs/guides/zh-CN/dsh.md#using-with-deepseek-harness),或通过 [Docker](docs/guides/zh-CN/docker.md#using-with-docker) 运行。
|
|
75
75
|
|
|
76
76
|
<a id="compatibility"></a>
|
|
77
77
|
|
|
@@ -86,6 +86,7 @@ curl http://localhost:4141/v1/models
|
|
|
86
86
|
| Claude Code | — | — | ✅ 原生 / 适配 | Anthropic Messages |
|
|
87
87
|
| OpenCode | ✅ 原生 | ✅ 原生 / 适配 | ✅ 原生 / 适配(通过 `@ai-sdk/anthropic`) | Anthropic Messages |
|
|
88
88
|
| Codex | — | ✅ 原生 / 适配 | — | Responses |
|
|
89
|
+
| DeepSeek Harness | — | ✅ 通过 `dsh-copilot-api` | ✅ 通过 `dsh-copilot-api` | Responses |
|
|
89
90
|
| OpenAI 兼容客户端 | ✅ 原生 | ✅ 原生 / 适配 | — | Chat Completions |
|
|
90
91
|
| Anthropic 兼容客户端 | — | — | ✅ 原生 / 适配 | Anthropic Messages |
|
|
91
92
|
|
|
@@ -111,6 +112,7 @@ Windows x64(`.exe`)、macOS Apple Silicon(`.dmg`)和 Linux x64(`.AppIm
|
|
|
111
112
|
| [安装与启动](docs/guides/zh-CN/getting-started.md) | 环境要求、项目概览、npx 与源码运行、无 Copilot 时的 provider-only 模式,以及网关 API Key 配置 |
|
|
112
113
|
| [Claude Code](docs/guides/zh-CN/claude-code.md) | settings.json、网关模型发现、模型映射、自动压缩窗口与 WebSearch 行为 |
|
|
113
114
|
| [OpenCode](docs/guides/zh-CN/opencode.md) | v2 Responses 插件与自动模型发现、原生压缩、模型能力与价格、上下文上限,以及 v1 Anthropic SDK 配置 |
|
|
115
|
+
| [DeepSeek Harness](docs/guides/zh-CN/dsh.md) | 安装 `dsh-copilot-api`、保存网关 API 密钥,并选择 Responses 或 Messages |
|
|
114
116
|
| [Codex](docs/guides/zh-CN/codex.md) | 完整的 `config.toml` provider 配置块、`GITHUB_COPILOT_API_KEY` 环境变量设置、自动审核模型映射、生成 `model_catalog.json`,以及合并后的模型选择器目录与协议适配 |
|
|
115
117
|
| [Docker](docs/guides/zh-CN/docker.md) | Docker Compose 快速启动、`/data` 持久化挂载与属主修复、支持的环境变量,以及监听所有网卡地址 |
|
|
116
118
|
| [桌面应用](docs/guides/zh-CN/desktop.md) | Copilot 登录、Codex OAuth 账号切换、API Key provider、一键启停、共享模型映射、高级设置与各平台安装包 |
|
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.24",
|
|
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",
|