free-coding-models 0.5.39 → 0.5.41

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.
@@ -0,0 +1,4 @@
1
+ # Changelog v0.5.40 - 2026-07-07
2
+
3
+ ### Fixed
4
+ - Avoid sending `thinking: { type: 'disabled' }` to Cerebras, Mistral, Groq, and SambaNova during ping probes, preventing immediate 400 errors and redundant retry calls.
@@ -0,0 +1,7 @@
1
+ # Changelog v0.5.41 - 2026-07-07
2
+
3
+ ### Changed
4
+ - Adjusted the context window size of Cerebras models (`zai-glm-4.7` and `gpt-oss-120b`) to `8k` in the model catalog (`sources.js`) to reflect the strict 8192 total token limit of the Cerebras free tier API.
5
+
6
+ ### Fixed
7
+ - Added a custom compatibility flag `"supportsTools": false` in `openai-completions.js` to allow completely disabling tool parameter injection for models with very small context windows.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "free-coding-models",
3
- "version": "0.5.39",
3
+ "version": "0.5.41",
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",
package/sources.js CHANGED
@@ -94,8 +94,8 @@ export const groq = [
94
94
  // 📖 Cerebras source - https://cloud.cerebras.ai
95
95
  // 📖 Free API keys available at https://cloud.cerebras.ai
96
96
  export const cerebras = [
97
- ['gpt-oss-120b', 'GPT OSS 120B', 'S', '60.0%', '131k'],
98
- ['zai-glm-4.7', 'GLM 4.7', 'S+', '73.8%', '131k'],
97
+ ['gpt-oss-120b', 'GPT OSS 120B', 'S', '60.0%', '8k'],
98
+ ['zai-glm-4.7', 'GLM 4.7', 'S+', '73.8%', '8k'],
99
99
  ]
100
100
 
101
101
  // 📖 SambaNova source - https://cloud.sambanova.ai
package/src/core/ping.js CHANGED
@@ -80,6 +80,7 @@ export function markDisabledThinkingUnsupported(providerKey) {
80
80
  // 📖 shouldUseDisabledThinkingForProvider: central policy for OpenAI-compatible
81
81
  // 📖 probes, shared by regular pings and router health probes.
82
82
  export function shouldUseDisabledThinkingForProvider(providerKey) {
83
+ if (providerKey === 'cerebras' || providerKey === 'mistral' || providerKey === 'groq' || providerKey === 'sambanova') return false
83
84
  return !disabledThinkingUnsupportedProviders.has(providerKey)
84
85
  }
85
86