Skip to content

Commit 15d5c16

Browse files
release: 0.31.0 (#238)
Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent b5bce39 commit 15d5c16

File tree

14 files changed

+131
-55
lines changed

14 files changed

+131
-55
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.30.0"
2+
".": "0.31.0"
33
}

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 17
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/groqcloud%2Fgroqcloud-4543b558a0a546fc45d3300535b9b535f9cf251f4284bc255d3bc337727e5a50.yml
3-
openapi_spec_hash: 09235cb11f84f84a07819c2b3f0a6d6a
4-
config_hash: 6b1c374dcc1ffa3165dd22f52a77ff89
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/groqcloud%2Fgroqcloud-a95a90928412afdb9cf5101b7fbb67ef2abbc4ecaa51ff18fa04643f9e8d2c95.yml
3+
openapi_spec_hash: d2e5cb1562a2b2beb8673256252b9bf5
4+
config_hash: 961b4995e909aef11a454befa56ad3d2

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
11
# Changelog
22

3+
## 0.31.0 (2025-09-02)
4+
5+
Full Changelog: [v0.30.0...v0.31.0](https://github.com/groq/groq-typescript/compare/v0.30.0...v0.31.0)
6+
7+
### Features
8+
9+
* **api:** api update ([be48d38](https://github.com/groq/groq-typescript/commit/be48d38f749dc4599ab71633ff226583f6e74b02))
10+
* **api:** api update ([44424c2](https://github.com/groq/groq-typescript/commit/44424c26018f43b69682bebca7e9c734b5d0f1e0))
11+
* **api:** api update ([f772446](https://github.com/groq/groq-typescript/commit/f772446f655ff905c14f40f45cafc4109ef7f912))
12+
* **api:** api update ([2e12bd1](https://github.com/groq/groq-typescript/commit/2e12bd1022f8cd168d41b62d753615b3900ee1f1))
13+
* **api:** api update ([61a9e99](https://github.com/groq/groq-typescript/commit/61a9e99c984e43432d823388435893408d84ce0f))
14+
15+
16+
### Bug Fixes
17+
18+
* update example model from decommissioned models to gpt-oss-20b ([1c69897](https://github.com/groq/groq-typescript/commit/1c69897c7fe09a0d0df5f041749a17a95ed878cd))
19+
20+
21+
### Chores
22+
23+
* **deps:** update dependency node-fetch to v2.6.13 ([4938496](https://github.com/groq/groq-typescript/commit/49384963049a83b196e87595046e7686fcdfcca0))
24+
* **internal:** formatting change ([a287d5e](https://github.com/groq/groq-typescript/commit/a287d5e41f1b6bba338b0cc3e1b9212a35b4e824))
25+
* **internal:** move publish config ([5fe1890](https://github.com/groq/groq-typescript/commit/5fe1890402075a67d6ea4472b6196273cd0b0f9e))
26+
* **internal:** update comment in script ([2a69a41](https://github.com/groq/groq-typescript/commit/2a69a4195d773bd0c6c1dcc0e49824ed6f50b24d))
27+
* update @stainless-api/prism-cli to v5.15.0 ([35cd683](https://github.com/groq/groq-typescript/commit/35cd68309611e5e77f04974ce18b516116f3346d))
28+
* update CI script ([e863bc0](https://github.com/groq/groq-typescript/commit/e863bc04c0324e2b5cdf2fab8abe36e2c4469907))
29+
330
## 0.30.0 (2025-08-05)
431

532
Full Changelog: [v0.29.0...v0.30.0](https://github.com/groq/groq-typescript/compare/v0.29.0...v0.30.0)

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const client = new Groq({
2828

2929
const chatCompletion = await client.chat.completions.create({
3030
messages: [{ role: 'user', content: 'Explain the importance of low latency LLMs' }],
31-
model: 'llama3-8b-8192',
31+
model: 'openai/gpt-oss-20b',
3232
});
3333

3434
console.log(chatCompletion.choices[0].message.content);
@@ -51,7 +51,7 @@ const params: Groq.Chat.CompletionCreateParams = {
5151
{ role: 'system', content: 'You are a helpful assistant.' },
5252
{ role: 'user', content: 'Explain the importance of low latency LLMs' },
5353
],
54-
model: 'llama3-8b-8192',
54+
model: 'openai/gpt-oss-20b',
5555
};
5656
const chatCompletion: Groq.Chat.ChatCompletion = await client.chat.completions.create(params);
5757
```
@@ -117,7 +117,7 @@ const chatCompletion = await client.chat.completions
117117
{ role: 'system', content: 'You are a helpful assistant.' },
118118
{ role: 'user', content: 'Explain the importance of low latency LLMs' },
119119
],
120-
model: 'llama3-8b-8192',
120+
model: 'openai/gpt-oss-20b',
121121
})
122122
.catch(async (err) => {
123123
if (err instanceof Groq.APIError) {
@@ -159,7 +159,7 @@ const client = new Groq({
159159
});
160160

161161
// Or, configure per-request:
162-
await client.chat.completions.create({ messages: [{ role: 'system', content: 'You are a helpful assistant.' }, { role: 'user', content: 'Explain the importance of low latency LLMs' }], model: 'llama3-8b-8192' }, {
162+
await client.chat.completions.create({ messages: [{ role: 'system', content: 'You are a helpful assistant.' }, { role: 'user', content: 'Explain the importance of low latency LLMs' }], model: 'openai/gpt-oss-20b' }, {
163163
maxRetries: 5,
164164
});
165165
```
@@ -176,7 +176,7 @@ const client = new Groq({
176176
});
177177

178178
// Override per-request:
179-
await client.chat.completions.create({ messages: [{ role: 'system', content: 'You are a helpful assistant.' }, { role: 'user', content: 'Explain the importance of low latency LLMs' }], model: 'llama3-8b-8192' }, {
179+
await client.chat.completions.create({ messages: [{ role: 'system', content: 'You are a helpful assistant.' }, { role: 'user', content: 'Explain the importance of low latency LLMs' }], model: 'openai/gpt-oss-20b' }, {
180180
timeout: 5 * 1000,
181181
});
182182
```
@@ -203,7 +203,7 @@ const response = await client.chat.completions
203203
{ role: 'system', content: 'You are a helpful assistant.' },
204204
{ role: 'user', content: 'Explain the importance of low latency LLMs' },
205205
],
206-
model: 'llama3-8b-8192',
206+
model: 'openai/gpt-oss-20b',
207207
})
208208
.asResponse();
209209
console.log(response.headers.get('X-My-Header'));
@@ -215,7 +215,7 @@ const { data: chatCompletion, response: raw } = await client.chat.completions
215215
{ role: 'system', content: 'You are a helpful assistant.' },
216216
{ role: 'user', content: 'Explain the importance of low latency LLMs' },
217217
],
218-
model: 'llama3-8b-8192',
218+
model: 'openai/gpt-oss-20b',
219219
})
220220
.withResponse();
221221
console.log(raw.headers.get('X-My-Header'));
@@ -329,7 +329,7 @@ await client.chat.completions.create(
329329
{ role: 'system', content: 'You are a helpful assistant.' },
330330
{ role: 'user', content: 'Explain the importance of low latency LLMs' },
331331
],
332-
model: 'llama3-8b-8192',
332+
model: 'openai/gpt-oss-20b',
333333
},
334334
{
335335
httpAgent: new http.Agent({ keepAlive: false }),

bin/publish-npm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ else
5858
fi
5959

6060
# Publish with the appropriate tag
61-
yarn publish --access public --tag "$TAG"
61+
yarn publish --tag "$TAG"

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "groq-sdk",
3-
"version": "0.30.0",
3+
"version": "0.31.0",
44
"description": "The official TypeScript library for the Groq API",
55
"author": "Groq <[email protected]>",
66
"types": "dist/index.d.ts",
@@ -13,6 +13,9 @@
1313
"**/*"
1414
],
1515
"private": false,
16+
"publishConfig": {
17+
"access": "public"
18+
},
1619
"scripts": {
1720
"test": "./scripts/test",
1821
"build": "./scripts/build",

scripts/mock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ echo "==> Starting mock server with URL ${URL}"
2121

2222
# Run prism mock on the given spec
2323
if [ "$1" == "--daemon" ]; then
24-
npm exec --package=@stainless-api/prism-cli@5.8.5 -- prism mock "$URL" &> .prism.log &
24+
npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL" &> .prism.log &
2525

2626
# Wait for server to come online
2727
echo -n "Waiting for server"
@@ -37,5 +37,5 @@ if [ "$1" == "--daemon" ]; then
3737

3838
echo
3939
else
40-
npm exec --package=@stainless-api/prism-cli@5.8.5 -- prism mock "$URL"
40+
npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL"
4141
fi

scripts/test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ elif ! prism_is_running ; then
4343
echo -e "To run the server, pass in the path or url of your OpenAPI"
4444
echo -e "spec to the prism command:"
4545
echo
46-
echo -e " \$ ${YELLOW}npm exec --package=@stoplight/prism-cli@~5.3.2 -- prism mock path/to/your.openapi.yml${NC}"
46+
echo -e " \$ ${YELLOW}npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC}"
4747
echo
4848

4949
exit 1

scripts/utils/upload-artifact.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if [[ "$SIGNED_URL" == "null" ]]; then
1212
exit 1
1313
fi
1414

15-
UPLOAD_RESPONSE=$(tar -cz dist | curl -v -X PUT \
15+
UPLOAD_RESPONSE=$(tar -cz "${BUILD_PATH:-dist}" | curl -v -X PUT \
1616
-H "Content-Type: application/gzip" \
1717
--data-binary @- "$SIGNED_URL" 2>&1)
1818

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ Groq.Audio = Audio;
218218
Groq.Models = Models;
219219
Groq.Batches = Batches;
220220
Groq.Files = Files;
221+
221222
export declare namespace Groq {
222223
export type RequestOptions = Core.RequestOptions;
223224

0 commit comments

Comments
 (0)