free-coding-models 0.5.70 → 0.5.71

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 CHANGED
@@ -484,7 +484,7 @@ Then restart Pi. The extension loads automatically. Requires Pi + `free-coding-m
484
484
  | `/fcm-router` | Connect Pi to the local FCM Smart Router daemon |
485
485
  | `/fcm-status` | Diagnostics: active model, last scan source, daemon state |
486
486
 
487
- **Composite ranking** — SWE-bench (60%) + Latency (20%) + TPS (10%) + Stability (10%). Tiny-context Cerebras models (~8k total tokens) are hidden from Pi/OpenCode pickers since they pass a `hi` probe but fail real agent prompts.
487
+ **Composite ranking** — SWE-bench (60%) + Latency (20%) + TPS (10%) + Stability (10%). Cerebras free-tier models are capped at ~64-65k total tokens (paid tier gets 131k) and are hidden from Pi/OpenCode pickers when they fail real agent prompts.
488
488
 
489
489
  → Full architecture: [`packages/fcm-pi/README.md`](./packages/fcm-pi/README.md)
490
490
 
@@ -0,0 +1,11 @@
1
+ # Changelog v0.5.71 - 2026-08-15
2
+
3
+ ### Fixed
4
+ - **Goose launch wrote a hardcoded 128k context limit** — when launching a model into Goose with `--goose` (or via the TUI Enter flow), the generated `~/.config/goose/custom_providers/fcm-<provider>.json` always set `context_limit: 128000`, ignoring the model's real context window. Models with larger contexts (e.g. MiniMax M3, 1M) were silently capped at 128k, and free-tier models with smaller limits (e.g. Cerebras 64-65k) were advertised above what the API actually allows. The launcher now uses the same `parseContextWindow(model.ctx)` logic as the Install Endpoints flow, so the context limit always matches the catalog value. (Fixes GitHub issue #153)
5
+ - **Stale Cerebras context references in docs** — README.md, packages/fcm-pi/README.md, and the Pi integration docs claimed Cerebras free tier has an "~8k total token limit". Per the official Cerebras Inference docs the free tier now caps context at ~64-65k (paid tier gets 131k). Docs updated to match.
6
+
7
+ ### Changed
8
+ - `parseContextWindow` is now exported from `src/core/endpoint-installer.js` so the Goose launcher (`src/core/tool-launchers.js`) and the Install Endpoints flow share the same single source of truth for context parsing.
9
+
10
+ ### Tests
11
+ - 797/797 tests passing, including a new regression assertion that a 1M-context model launched into Goose produces `context_limit: 1000000` in the generated provider file.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "free-coding-models",
3
- "version": "0.5.70",
3
+ "version": "0.5.71",
4
4
  "description": "Find the fastest coding LLM models in seconds — ping free models from multiple providers, pick the best one for OpenCode, Cursor, or any AI coding assistant.",
5
5
  "keywords": [
6
6
  "nvidia",
@@ -147,7 +147,7 @@ function getManagedProviderLabel(providerKey) {
147
147
  return `FCM ${getProviderLabel(providerKey)}`
148
148
  }
149
149
 
150
- function parseContextWindow(ctx) {
150
+ export function parseContextWindow(ctx) {
151
151
  if (typeof ctx !== 'string' || !ctx.trim()) return 128000
152
152
  const trimmed = ctx.trim().toLowerCase()
153
153
  const multiplier = trimmed.endsWith('m') ? 1_000_000 : trimmed.endsWith('k') ? 1_000 : 1
@@ -49,6 +49,7 @@ import { getToolMeta, TOOL_METADATA } from './tool-metadata.js'
49
49
  import { PROVIDER_METADATA } from './provider-metadata.js'
50
50
  import { resolveToolBinaryPath } from './tool-bootstrap.js'
51
51
  import { ensureDir, readJson, writeJson } from './shared-helpers.js'
52
+ import { parseContextWindow } from './endpoint-installer.js'
52
53
 
53
54
  const OPENAI_COMPAT_ENV_KEYS = [
54
55
  'OPENAI_API_KEY',
@@ -338,7 +339,7 @@ function writeGooseConfig(model, apiKey, baseUrl, providerKey, paths = getDefaul
338
339
  description: `Managed by free-coding-models for ${providerLabel}`,
339
340
  api_key_env: secretEnvName,
340
341
  base_url: baseUrl?.endsWith('/chat/completions') ? baseUrl : (baseUrl || ''),
341
- models: [{ name: model.modelId, context_limit: 128000 }],
342
+ models: [{ name: model.modelId, context_limit: parseContextWindow(model.ctx) }],
342
343
  supports_streaming: true,
343
344
  requires_auth: true,
344
345
  }