Skip to content

Commit

Permalink
feat(api): api update (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Jan 11, 2025
1 parent 72dfc54 commit 003600d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 7
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/groqcloud%2Fgroqcloud-33be0d612b9f1153b86f53e95bf7c571af2f1e466bda2330b632e6c05832e2a6.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/groqcloud%2Fgroqcloud-8bf31041292f851076489c3ac1270d06c49b995225d91cf5de2288a4bcfa8c29.yml
7 changes: 7 additions & 0 deletions src/resources/chat/completions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,13 @@ export interface ChatCompletionCreateParamsBase {
* total length of input tokens and generated tokens is limited by the model's
* context length.
*/
max_completion_tokens?: number | null;

/**
* Deprecated in favor of `max_completion_tokens`. The maximum number of tokens
* that can be generated in the chat completion. The total length of input tokens
* and generated tokens is limited by the model's context length.
*/
max_tokens?: number | null;

/**
Expand Down
1 change: 1 addition & 0 deletions tests/api-resources/chat/completions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ describe('resource completions', () => {
functions: [{ name: 'name', description: 'description', parameters: { foo: 'bar' } }],
logit_bias: { foo: 0 },
logprobs: true,
max_completion_tokens: 0,
max_tokens: 0,
n: 1,
parallel_tool_calls: true,
Expand Down

0 comments on commit 003600d

Please sign in to comment.