pi-free 2.0.0 → 2.0.1
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/CHANGELOG.md +37 -0
- package/README.md +393 -416
- package/config.ts +6 -2
- package/constants.ts +1 -0
- package/index.ts +6 -44
- package/lib/built-in-toggle.ts +206 -0
- package/package.json +67 -67
- package/provider-helper.ts +260 -260
- package/providers/cline/cline-models.ts +1 -1
- package/providers/cline/cline.ts +5 -7
- package/providers/dynamic-built-in/index.ts +432 -513
- package/providers/kilo/kilo.ts +5 -5
- package/providers/nvidia/nvidia.ts +1 -1
- package/providers/ollama/ollama.ts +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,43 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [2.0.1] - 2026-04-24
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- **Built-in provider toggle support** (`lib/built-in-toggle.ts`) — Enables free/paid filtering for Pi's built-in providers that expose per-model pricing:
|
|
14
|
+
- **OpenCode (`/toggle-opencode`)** — Captures built-in OpenCode models on session start and filters to free-only by default
|
|
15
|
+
- **OpenRouter (`/toggle-openrouter`)** — Now uses the built-in toggle system for consistency
|
|
16
|
+
- Toggle works in the current session (no restart needed)
|
|
17
|
+
- Persisted via `opencode_show_paid` and `openrouter_show_paid` in `~/.pi/free.json`
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
- **OpenRouter moved to built-in toggle system** — OpenRouter is now handled by `lib/built-in-toggle.ts` alongside OpenCode for a unified approach:
|
|
21
|
+
- Removed from `providers/dynamic-built-in/index.ts`
|
|
22
|
+
- Eliminated duplicate toggle command registration logic
|
|
23
|
+
- Consolidated toggle persistence with other built-in providers
|
|
24
|
+
|
|
25
|
+
- **Standardized all toggle commands to `toggle-{provider}`** — Renamed from `{provider}-toggle` for consistency:
|
|
26
|
+
- `/kilo-toggle` → `/toggle-kilo`
|
|
27
|
+
- `/cline-toggle` → `/toggle-cline`
|
|
28
|
+
- `/openrouter-toggle` → `/toggle-openrouter`
|
|
29
|
+
- `/nvidia-toggle` → `/toggle-nvidia`
|
|
30
|
+
- `/cloudflare-toggle` → `/toggle-cloudflare`
|
|
31
|
+
- `/ollama-toggle` → `/toggle-ollama`
|
|
32
|
+
- `/mistral-toggle` → `/toggle-mistral`
|
|
33
|
+
- `/groq-toggle` → `/toggle-groq`
|
|
34
|
+
- `/cerebras-toggle` → `/toggle-cerebras`
|
|
35
|
+
- `/toggle-opencode` (new)
|
|
36
|
+
|
|
37
|
+
### Fixed
|
|
38
|
+
- **Ollama Cloud model fetching endpoint** — Corrected the `/v1/models` → `/models` endpoint path in `providers/ollama/ollama.ts`:
|
|
39
|
+
- The previous fix (2.0.0) incorrectly used `/v1/models`; Ollama Cloud's models endpoint is `/v1/models` for chat completions but `/models` for listing
|
|
40
|
+
- This ensures model fetching works correctly with the OpenAI-compatible API
|
|
41
|
+
|
|
42
|
+
### Removed
|
|
43
|
+
- **Global `/free` command** — Removed the global free-only toggle. Per-provider toggles (`/toggle-{provider}`) are now the only way to switch between free and paid models. The `/free-providers` status command remains.
|
|
44
|
+
|
|
8
45
|
## [2.0.0] - 2026-04-23
|
|
9
46
|
|
|
10
47
|
### Breaking Changes
|