Skip to content

Commit 735da7d

Browse files
committed
0.5.41
1 parent eeecb6c commit 735da7d

5 files changed

Lines changed: 1996 additions & 6 deletions

File tree

changelog/v0.5.41.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "free-coding-models",
3-
"version": "0.5.40",
3+
"version": "0.5.41",
44
"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.",
55
"keywords": [
66
"nvidia",

pi-extension/request-params.json

Lines changed: 1965 additions & 3 deletions
Large diffs are not rendered by default.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import fs from 'node:fs'
2+
3+
const data = JSON.parse(fs.readFileSync('/Users/vava/Documents/GitHub/free-coding-models/pi-extension/request-params.json', 'utf8'))
4+
const { params } = data
5+
6+
// Force stream: false so we get the full response body easily
7+
params.stream = false
8+
9+
console.log('Sending request to Cerebras...')
10+
const resp = await fetch('https://api.cerebras.ai/v1/chat/completions', {
11+
method: 'POST',
12+
headers: {
13+
'Content-Type': 'application/json',
14+
'Authorization': 'Bearer csk-cm84r5nv3cvpe4nnxymm5ndt42r6ck8dfkev36d8fvh8839c'
15+
},
16+
body: JSON.stringify(params)
17+
})
18+
19+
console.log('Status:', resp.status)
20+
const text = await resp.text()
21+
console.log('Response:', text)

sources.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ export const groq = [
9494
// 📖 Cerebras source - https://cloud.cerebras.ai
9595
// 📖 Free API keys available at https://cloud.cerebras.ai
9696
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'],
9999
]
100100

101101
// 📖 SambaNova source - https://cloud.sambanova.ai

0 commit comments

Comments
 (0)