Skip to content

Commit 44424c2

Browse files
feat(api): api update
1 parent 2a69a41 commit 44424c2

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

.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-8f955114b8dc48157b4a968ceb5538b361028faf92610b03b9720006f396bf51.yml
3-
openapi_spec_hash: 09e9371adca4293f21e7c73211c2dad9
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/groqcloud%2Fgroqcloud-006dd9001842930a2cfefe6df983816d3ff8f87444460245a1078f0d107d1410.yml
3+
openapi_spec_hash: 1225c7359fd89cae0db1099647495862
44
config_hash: 6b1c374dcc1ffa3165dd22f52a77ff89

src/resources/chat/completions.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,6 +1488,11 @@ export interface ChatCompletionCreateParamsBase {
14881488
| 'llama3-70b-8192'
14891489
| 'llama3-8b-8192';
14901490

1491+
/**
1492+
* Custom configuration of models and tools for Compound.
1493+
*/
1494+
compound_custom?: CompletionCreateParams.CompoundCustom | null;
1495+
14911496
/**
14921497
* @deprecated Deprecated: Use search_settings.exclude_domains instead. A list of
14931498
* domains to exclude from the search results when the model uses a web search
@@ -1711,6 +1716,27 @@ export interface ChatCompletionCreateParamsBase {
17111716
}
17121717

17131718
export namespace CompletionCreateParams {
1719+
/**
1720+
* Custom configuration of models and tools for Compound.
1721+
*/
1722+
export interface CompoundCustom {
1723+
models?: CompoundCustom.Models | null;
1724+
}
1725+
1726+
export namespace CompoundCustom {
1727+
export interface Models {
1728+
/**
1729+
* Custom model to use for answering.
1730+
*/
1731+
answering_model?: string | null;
1732+
1733+
/**
1734+
* Custom model to use for reasoning.
1735+
*/
1736+
reasoning_model?: string | null;
1737+
}
1738+
}
1739+
17141740
/**
17151741
* @deprecated
17161742
*/

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ describe('resource completions', () => {
2727
const response = await client.chat.completions.create({
2828
messages: [{ content: 'string', role: 'system', name: 'name' }],
2929
model: 'meta-llama/llama-4-scout-17b-16e-instruct',
30+
compound_custom: { models: { answering_model: 'answering_model', reasoning_model: 'reasoning_model' } },
3031
exclude_domains: ['string'],
3132
frequency_penalty: -2,
3233
function_call: 'none',

0 commit comments

Comments
 (0)