Skip to content

Commit 5456706

Browse files
release: 0.21.0 (#226)
Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent e4fcecc commit 5456706

File tree

9 files changed

+54
-20
lines changed

9 files changed

+54
-20
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
name: CI
22
on:
33
push:
4-
branches:
5-
- main
6-
pull_request:
7-
branches:
8-
- main
9-
- next
4+
branches-ignore:
5+
- 'generated'
6+
- 'codegen/**'
7+
- 'integrated/**'
8+
- 'stl-preview-head/**'
9+
- 'stl-preview-base/**'
1010

1111
jobs:
1212
lint:
1313
timeout-minutes: 10
1414
name: lint
15-
runs-on: ubuntu-latest
15+
runs-on: ${{ github.repository == 'stainless-sdks/groqcloud-node' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
1616
steps:
1717
- uses: actions/checkout@v4
1818

@@ -30,7 +30,7 @@ jobs:
3030
build:
3131
timeout-minutes: 5
3232
name: build
33-
runs-on: ubuntu-latest
33+
runs-on: ${{ github.repository == 'stainless-sdks/groqcloud-node' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
3434
permissions:
3535
contents: read
3636
id-token: write
@@ -65,7 +65,7 @@ jobs:
6565
test:
6666
timeout-minutes: 10
6767
name: test
68-
runs-on: ubuntu-latest
68+
runs-on: ${{ github.repository == 'stainless-sdks/groqcloud-node' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
6969
steps:
7070
- uses: actions/checkout@v4
7171

.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.20.1"
2+
".": "0.21.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 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-37498d19ece87c6866fe2460cef019b42d73c598d3489925375484812ce9b5a5.yml
3-
openapi_spec_hash: 009dde3080daf9a27d5165245e4ad11d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/groqcloud%2Fgroqcloud-e4cd6fe4e6ac62707635fac8fb7d966a0360868e467b578ddd7cc04a9459ff26.yml
3+
openapi_spec_hash: e618e809624bb2f3b36995638c3ba791
44
config_hash: 6b1c374dcc1ffa3165dd22f52a77ff89

CHANGELOG.md

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

3+
## 0.21.0 (2025-05-01)
4+
5+
Full Changelog: [v0.20.1...v0.21.0](https://github.com/groq/groq-typescript/compare/v0.20.1...v0.21.0)
6+
7+
### Features
8+
9+
* **api:** api update ([d6447d8](https://github.com/groq/groq-typescript/commit/d6447d84e2996341008bb77860aa2b1a1893654f))
10+
11+
12+
### Chores
13+
14+
* **ci:** only use depot for staging repos ([65bbde4](https://github.com/groq/groq-typescript/commit/65bbde447ced600f07cffe4dfeafb975d0d90246))
15+
* **docs:** add missing deprecation warnings ([4fda471](https://github.com/groq/groq-typescript/commit/4fda471aa895a74b17671fabe59566fd17a9a0a4))
16+
* **internal:** codegen related update ([83848bd](https://github.com/groq/groq-typescript/commit/83848bdf4dcb8ce3c8c5bdee11d14d648b7172f4))
17+
18+
19+
### Documentation
20+
21+
* **readme:** fix typo ([7e506b6](https://github.com/groq/groq-typescript/commit/7e506b675dc84636715ad8314118525667e90bb5))
22+
323
## 0.20.1 (2025-04-23)
424

525
Full Changelog: [v0.20.0...v0.20.1](https://github.com/groq/groq-typescript/compare/v0.20.0...v0.20.1)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ async function main() {
139139
main();
140140
```
141141

142-
Error codes are as followed:
142+
Error codes are as follows:
143143

144144
| Status Code | Error Type |
145145
| ----------- | -------------------------- |

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "groq-sdk",
3-
"version": "0.20.1",
3+
"version": "0.21.0",
44
"description": "The official TypeScript library for the Groq API",
55
"author": "Groq <[email protected]>",
66
"types": "dist/index.d.ts",

src/resources/chat/completions.ts

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,12 @@ export interface ChatCompletionCreateParamsBase {
815815
| 'llama3-70b-8192'
816816
| 'llama3-8b-8192';
817817

818+
/**
819+
* A list of domains to exclude from the search results when the model uses a web
820+
* search tool.
821+
*/
822+
exclude_domains?: Array<string> | null;
823+
818824
/**
819825
* Number between -2.0 and 2.0. Positive values penalize new tokens based on their
820826
* existing frequency in the text so far, decreasing the model's likelihood to
@@ -823,7 +829,7 @@ export interface ChatCompletionCreateParamsBase {
823829
frequency_penalty?: number | null;
824830

825831
/**
826-
* Deprecated in favor of `tool_choice`.
832+
* @deprecated Deprecated in favor of `tool_choice`.
827833
*
828834
* Controls which (if any) function is called by the model. `none` means the model
829835
* will not call a function and instead generates a message. `auto` means the model
@@ -837,12 +843,18 @@ export interface ChatCompletionCreateParamsBase {
837843
function_call?: 'none' | 'auto' | 'required' | ChatCompletionFunctionCallOption | null;
838844

839845
/**
840-
* Deprecated in favor of `tools`.
846+
* @deprecated Deprecated in favor of `tools`.
841847
*
842848
* A list of functions the model may generate JSON inputs for.
843849
*/
844850
functions?: Array<CompletionCreateParams.Function> | null;
845851

852+
/**
853+
* A list of domains to include in the search results when the model uses a web
854+
* search tool.
855+
*/
856+
include_domains?: Array<string> | null;
857+
846858
/**
847859
* This is not yet supported by any of our models. Modify the likelihood of
848860
* specified tokens appearing in the completion.
@@ -864,9 +876,9 @@ export interface ChatCompletionCreateParamsBase {
864876
max_completion_tokens?: number | null;
865877

866878
/**
867-
* Deprecated in favor of `max_completion_tokens`. The maximum number of tokens
868-
* that can be generated in the chat completion. The total length of input tokens
869-
* and generated tokens is limited by the model's context length.
879+
* @deprecated Deprecated in favor of `max_completion_tokens`. The maximum number
880+
* of tokens that can be generated in the chat completion. The total length of
881+
* input tokens and generated tokens is limited by the model's context length.
870882
*/
871883
max_tokens?: number | null;
872884

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '0.20.1'; // x-release-please-version
1+
export const VERSION = '0.21.0'; // x-release-please-version

tests/api-resources/chat/completions.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ describe('resource completions', () => {
2727
const response = await client.chat.completions.create({
2828
messages: [{ content: 'content', role: 'system', name: 'name' }],
2929
model: 'string',
30+
exclude_domains: ['string'],
3031
frequency_penalty: -2,
3132
function_call: 'none',
3233
functions: [{ name: 'name', description: 'description', parameters: { foo: 'bar' } }],
34+
include_domains: ['string'],
3335
logit_bias: { foo: 0 },
3436
logprobs: true,
3537
max_completion_tokens: 0,

0 commit comments

Comments
 (0)