billion-context 0.1.21 → 0.1.23
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 +12 -18
- package/README.zh-CN.md +1 -2
- package/dist/index.js +3269 -327
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -55,26 +55,17 @@ bili
|
|
|
55
55
|
It listens on `http://127.0.0.1:8787`. Keep this terminal open (or run in the
|
|
56
56
|
background; see [Running the proxy](#running-the-proxy)).
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
Click [http://localhost:8787/__acp/](http://localhost:8787/__acp/) to add your models:
|
|
59
|
+
<img width="2908" height="1787" alt="image" src="https://github.com/user-attachments/assets/cacf4b64-e5c6-41f2-b270-fd2be02eab0c" />
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
**Or configure via the web UI** (easier): open `http://localhost:8787/__acp/` in
|
|
66
|
-
a browser while the proxy is running — edit providers in a form, and get
|
|
67
|
-
copy-ready config snippets for Pi / OpenCode / Codex. The startup banner prints
|
|
68
|
-
this URL too:
|
|
61
|
+
On first run `bili` **auto-creates an empty config file** and tells you where,
|
|
62
|
+
so you don't have to invent the schema from scratch. The startup banner prints
|
|
63
|
+
the web UI URL too:
|
|
69
64
|
|
|
70
65
|
```
|
|
71
66
|
acp-proxy listening on http://localhost:8787 — web UI: http://localhost:8787/__acp/
|
|
72
67
|
```
|
|
73
68
|
|
|
74
|
-
This is the recommended path for first-time setup. (Prefer editing the JSON
|
|
75
|
-
file directly — e.g. for git-managed or scripted deployments? See
|
|
76
|
-
[Manual config file](#manual-config-file) below.)
|
|
77
|
-
|
|
78
69
|
### How routing works
|
|
79
70
|
|
|
80
71
|
The proxy routes by a **provider name in the URL path** — the first path
|
|
@@ -101,10 +92,13 @@ to send each request. In the config below, `zhipu` corresponds to:
|
|
|
101
92
|
|
|
102
93
|
### Step 2 — Configure your providers
|
|
103
94
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
95
|
+
Copy the content below:
|
|
96
|
+
<img width="2931" height="1519" alt="image" src="https://github.com/user-attachments/assets/c02278be-bc7a-4f14-8f58-0f2d83784d54" />
|
|
97
|
+
|
|
98
|
+
> Prefer not to use the web UI? You can also edit the JSON file directly — see
|
|
99
|
+
> [Manual config file](#manual-config-file) below.
|
|
100
|
+
|
|
101
|
+
Then **restart `bili`** — the startup banner lists your routes:
|
|
108
102
|
|
|
109
103
|
```
|
|
110
104
|
acp-proxy listening on http://localhost:8787 — routes: anthropic=https://api.anthropic.com, zhipu=https://open.bigmodel.cn
|
package/README.zh-CN.md
CHANGED
|
@@ -58,8 +58,7 @@ bili
|
|
|
58
58
|
|
|
59
59
|
### 第 2 步 —— 编辑配置文件
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
在网页上添加你的 provider,复制以下内容到配置:
|
|
63
62
|
<img width="2931" height="1519" alt="image" src="https://github.com/user-attachments/assets/c02278be-bc7a-4f14-8f58-0f2d83784d54" />
|
|
64
63
|
|
|
65
64
|
> 不想用网页?也可以直接手编 JSON 文件,见下文[手动配置文件](#手动配置文件)。
|