Install
Install with PiG
pig install npm:pi-provider-canopywaveInstall with Pi
pi install npm:pi-provider-canopywavePackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"extensions": [
"./index.ts"
]
}README
Written by the package's publisher, shown as published in version 1.0.1 (README.md). PiG does not review it.
pi-provider-canopywave
Pi provider extension for the Canopy Wave inference API.
Canopy Wave serves open models over an OpenAI-compatible Chat Completions
endpoint at https://inference.canopywave.io/v1. This extension registers that
endpoint as the canopywave provider and reads its model catalog from
GET /v1/models on every catalog refresh, so model IDs, context windows,
output limits, prices, and capabilities come from the service. The catalog is not
cached on disk, so an offline start lists no Canopy Wave models until a catalog
request succeeds.
Install
pi install npm:pi-provider-canopywave
Or load it for one invocation:
pi -e npm:pi-provider-canopywave
Authenticate
Set the API key in CANOPYWAVE_API_KEY, or store it with /login canopywave.
Use
pi --model canopywave/moonshotai/kimi-k3
/model lists the provider's models; opening it refreshes the catalog.
Catalog mapping
Each GET /v1/models entry becomes a Pi chat model:
| Entry field | Pi model field |
|---|---|
id | id |
display_name | name |
context_size | contextWindow |
max_output_tokens | maxTokens |
input_token_price_per_m | cost.input |
output_token_price_per_m | cost.output |
features or tags contains reasoning | reasoning, and the thinking fields below |
features contains vision, or model_type is vision | input includes image |
Token counts are read as numbers or as suffixed strings such as 128k and
1000K. Prices are reported by Canopy Wave in cents per million tokens and
converted to dollars per million tokens. An entry whose limits or prices cannot
be read fails the refresh with a message naming the model and field rather than
registering a guessed context window.
Models whose endpoints omit completion, and models whose model_type is
neither chat nor vision, are not chat models and are not registered.
/v1/models reports no cache-read price, so cost.cacheRead is 0 and cached
prompt reads are reported without cost.
Thinking control
reasoning follows the catalog's reasoning capability. It is not inferred
from whether a model produces reasoning text: minimax/minimax-m3 and
tencent/hy4-flash emit reasoning_content while their metadata advertises no
reasoning capability, and Pi renders reasoning text whatever the flag says.
A reasoning model gets every Pi thinking level from off to high:
compat field | Value | Request effect |
|---|---|---|
thinkingFormat | zai | thinking: {"type": "enabled", "clear_thinking": false} when a level is selected, thinking: {"type": "disabled"} at off |
supportsReasoningEffort | true | reasoning_effort carries the selected level |
Measured against the service: thinking: {"type": "disabled"} stops thinking
on twelve of the sixteen chat models, and thinking: {"type": "enabled", "clear_thinking": false} is accepted by every model tested.
Measured overrides
MEASURED_CAPABILITIES in index.ts records the models where the service
contradicts its catalog. Every other model takes its metadata as it arrives.
| Model | Override | Measured behaviour |
|---|---|---|
zai/glm-5.3 | thinkingAlwaysOn, textOnly | HTTP 400 The value of the enable_thinking parameter is restricted to True for the disable shape; HTTP 400 The current model only supports text modality for an image, which the catalog advertises as vision |
zai/glm-5.2 | textOnly | same text-modality rejection, while the catalog advertises vision |
minimax/minimax-m3.1-flash | thinkingAlwaysOn | HTTP 400 requires adaptive thinking; thinking.type="disabled" ... is not allowed |
moonshotai/kimi-k2.7-code | thinkingAlwaysOn | accepts the disable shape and produces reasoning anyway |
moonshotai/kimi-k2.7-code-highspeed | thinkingAlwaysOn | accepts the disable shape and produces reasoning anyway |
thinkingAlwaysOn sets compat.thinkingFormat: "baseten", which sends no
thinking field at all — only reasoning_effort — and sets
thinkingLevelMap: { off: null }, which removes off from the level list. No
request path can then ask the model to stop thinking. A model added to the
catalog after this table was measured starts with no override; if its backend
rejects what its metadata advertises, an entry has to be added after
measurement, and npm test -- --live is what surfaces the contradiction.
Verify
npm install
npm run check
npm test # mapping tests
npm test -- --live # plus live requests against Canopy Wave
--live reads CANOPYWAVE_API_KEY and performs paced requests, because the
service limits a key to six requests per minute.