@nanobpm/nano-coder 0.36.0 → 0.37.0
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 +35 -6
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -509,7 +509,7 @@ Built-in presets:
|
|
|
509
509
|
| `kimi` | openai | `https://api.moonshot.ai/v1` | `MOONSHOT_API_KEY` |
|
|
510
510
|
| `mistral` | openai | `https://api.mistral.ai/v1` | `MISTRAL_API_KEY` |
|
|
511
511
|
| `gemini` | openai | `https://generativelanguage.googleapis.com/v1beta/openai` | `GEMINI_API_KEY` |
|
|
512
|
-
| `qwen` | openai |
|
|
512
|
+
| `qwen` | openai | Model Studio (default: Standard, Singapore — all plans/regions below) | `DASHSCOPE_API_KEY` / `BAILIAN_*_PLAN_API_KEY` |
|
|
513
513
|
| `ollama` | openai | `http://localhost:11434/v1` | — |
|
|
514
514
|
| `llamacpp` | openai | `http://localhost:8080/v1` | — |
|
|
515
515
|
| `github-copilot` | github-copilot | from session token | `GITHUB_COPILOT_OAUTH_TOKEN` or `--login` (unofficial, see below) |
|
|
@@ -547,11 +547,40 @@ timeout_secs = 300 # idle timeout: max silence between stre
|
|
|
547
547
|
max_retries = 3
|
|
548
548
|
```
|
|
549
549
|
|
|
550
|
-
`qwen` is Qwen Cloud (Alibaba Cloud Model Studio), e.g. `--model qwen/qwen3.8-max`.
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
`
|
|
554
|
-
|
|
550
|
+
`qwen` is Qwen Cloud (Alibaba Cloud Model Studio), e.g. `--model qwen/qwen3.8-max`.
|
|
551
|
+
Model Studio serves the same models through three plans, each with its own hostnames and
|
|
552
|
+
API-key variable. All of them speak OpenAI Chat Completions, so each is just a `base_url`
|
|
553
|
+
+ `api_key_env`:
|
|
554
|
+
|
|
555
|
+
| Plan | Region | Base URL | API key env |
|
|
556
|
+
|---|---|---|---|
|
|
557
|
+
| Standard API key | Singapore (International) | `https://dashscope-intl.aliyuncs.com/compatible-mode/v1` | `DASHSCOPE_API_KEY` |
|
|
558
|
+
| Standard API key | China (Beijing) | `https://dashscope.aliyuncs.com/compatible-mode/v1` | `DASHSCOPE_API_KEY` |
|
|
559
|
+
| Standard API key | US (Virginia) | `https://dashscope-us.aliyuncs.com/compatible-mode/v1` | `DASHSCOPE_API_KEY` |
|
|
560
|
+
| Standard API key | China (Hong Kong) | `https://cn-hongkong.dashscope.aliyuncs.com/compatible-mode/v1` | `DASHSCOPE_API_KEY` |
|
|
561
|
+
| Token Plan | Singapore (International) | `https://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1` | `BAILIAN_TOKEN_PLAN_API_KEY` |
|
|
562
|
+
| Token Plan | China (Beijing) | `https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1` | `BAILIAN_TOKEN_PLAN_API_KEY` |
|
|
563
|
+
| Coding Plan | Singapore (International) | `https://coding-intl.dashscope.aliyuncs.com/v1` | `BAILIAN_CODING_PLAN_API_KEY` |
|
|
564
|
+
| Coding Plan | China (Beijing) | `https://coding.dashscope.aliyuncs.com/v1` | `BAILIAN_CODING_PLAN_API_KEY` |
|
|
565
|
+
|
|
566
|
+
The `qwen` preset defaults to **Standard API key, Singapore** (the first row). In
|
|
567
|
+
`/settings` → *Add or edit a provider* → `qwen` these eight endpoints are offered as a
|
|
568
|
+
*Qwen / Model Studio endpoint* picker (plus a custom URL), so you can switch plan and
|
|
569
|
+
region without retyping a URL. Picking a plan also points the provider at that plan's
|
|
570
|
+
API-key variable — the preset's `DASHSCOPE_API_KEY` becomes `BAILIAN_TOKEN_PLAN_API_KEY`
|
|
571
|
+
for Token Plan, and `BAILIAN_CODING_PLAN_API_KEY` for Coding Plan. Set the variable (or a
|
|
572
|
+
key command / literal key) at the key prompt that follows. API keys are also bound to a
|
|
573
|
+
*region*, so a key issued for another region still needs the matching endpoint row.
|
|
574
|
+
|
|
575
|
+
To configure an endpoint in the config file directly, override `base_url` and
|
|
576
|
+
`api_key_env` (append `/compatible-mode/v1` to a workspace domain, e.g.
|
|
577
|
+
`https://<WorkspaceId>.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1`):
|
|
578
|
+
|
|
579
|
+
```toml
|
|
580
|
+
[providers.qwen] # Token Plan, China
|
|
581
|
+
base_url = "https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1"
|
|
582
|
+
api_key_env = "BAILIAN_TOKEN_PLAN_API_KEY"
|
|
583
|
+
```
|
|
555
584
|
|
|
556
585
|
`kimi` is the Kimi API from platform.kimi.ai, e.g. `--model kimi/kimi-k3` or
|
|
557
586
|
`kimi/kimi-k2.7-code`. The preset drops `temperature` (K3 fixes it) and sets
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nanobpm/nano-coder",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.37.0",
|
|
4
4
|
"description": "A 6MB coding agent. Run a fleet on your laptop.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"node": ">=18"
|
|
32
32
|
},
|
|
33
33
|
"optionalDependencies": {
|
|
34
|
-
"@nanobpm/nano-coder-darwin-arm64": "0.
|
|
35
|
-
"@nanobpm/nano-coder-darwin-x64": "0.
|
|
36
|
-
"@nanobpm/nano-coder-linux-arm64": "0.
|
|
37
|
-
"@nanobpm/nano-coder-linux-x64": "0.
|
|
34
|
+
"@nanobpm/nano-coder-darwin-arm64": "0.37.0",
|
|
35
|
+
"@nanobpm/nano-coder-darwin-x64": "0.37.0",
|
|
36
|
+
"@nanobpm/nano-coder-linux-arm64": "0.37.0",
|
|
37
|
+
"@nanobpm/nano-coder-linux-x64": "0.37.0"
|
|
38
38
|
}
|
|
39
39
|
}
|