github vava-nessa/free-coding-models v0.5.78

latest releases: v0.6.1, v0.6.0, v0.5.99...
3 months ago

Fixed

  • Router forwards prompt_cache_key to NVIDIA -> HTTP 400 (fixes #160). Clients using OpenAI JS SDK (pi agent) set prompt_cache_key to session UUID for prompt caching; NVIDIA rejects it with Unsupported parameter(s): prompt_cache_key. Added prompt_cache_key to STRIP_PARAMS in src/core/schema-normalizer.js and added nvidia: normalizeNvidia (strip + orphan tool drop) to PROVIDER_NORMALIZERS so normalizeRequestBody(body, 'nvidia') now strips the hint before forwarding. Verified with direct replay against integrate.api.nvidia.com and pnpm test 813/813. Thanks @pelvity.

  • Config pingInterval not respected at startup (fixes #155). TUI always started in speed mode (2s) ignoring settings.pingInterval and --ping-interval. Now src/tui/tui-state.js createTuiState() derives initialInterval from config.settings.pingInterval (already merged from CLI in src/tui/app.js:283) and maps to mode via intervalToPingMode (30000 -> slow, 10000 -> normal, 4000 -> forced, <=3000 -> speed). Sets pingModeSource to config vs startup and only sets speedModeUntil when initial mode is speed. Users with 30s interval no longer burn quota on startup burst. Thanks @BetterToAutomateTheWorld.

  • jcode configuration option for CLI and web (fixes #145). CLI Z cycle already had jcode but launch hung (stdin left in raw mode, REPL appeared frozen) and web had no jcode option at all.

    • CLI hang: src/tui/key-handler.js launchSelectedModel now calls stopUi({ resetRawMode: true }) (was stopUi() with raw mode still enabled) and src/core/tool-launchers.js spawnCommand defensively resets stdin.setRawMode(false) before handing TTY to child.
    • Web: Added jcode to INSTALL_TARGET_MODES in src/core/endpoint-installer.js (now 15 targets, jcode after pi to match TOOL_MODE_ORDER order) with env-based installer (~/.fcm-jcode-env), mirrored in web/src/utils/m3.js INSTALL_ENDPOINT_TOOL_MODES, and fixed web/src/hooks/useToolMode.js cycle bug (TOOL_MODE_ORDER -> INSTALL_ENDPOINT_TOOL_MODES). Web /api/tool-mode now accepts jcode without 422 and dropdown/cycle shows it. Thanks @plahakps.

Changed

  • src/core/schema-normalizer.js JSDoc now exports normalizeNvidia and clarifies per-provider normalization.
  • web/src/utils/m3.js and src/core/endpoint-installer.js tool order now matches CLI's TOOL_MODE_ORDER (opencode -> pi -> jcode -> opencode-desktop ...).

Tests

  • 813/813 passing. Updated test/test.js endpoint install target expectation to include jcode.

Don't miss a new free-coding-models release

NewReleases is sending notifications on new releases.