Skip to content

Commit 137e09b

Browse files
feat: Add compliance and chat_template_kwargs to chat completions spec
1 parent 6b244ee commit 137e09b

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-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: 45
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-a12a8f76dabc5f09bc2925b8d82b9d365c82b5eb5d183afcffd9f459dc058bcb.yml
3-
openapi_spec_hash: 5d5efee2b3de68d1a572788125dbf77d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-5bf4a0ec441254dfa07138a49ee44a8b84696db879c4d4df73ba836ba7a51d62.yml
3+
openapi_spec_hash: f602dfd1aaac78f149c1dbe352b7b7e0
44
config_hash: 9749f2f8998aa6b15452b2187ff675b9

src/resources/chat/completions.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,10 @@ export interface CompletionCreateParamsBase {
328328
| 'meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo'
329329
| (string & {});
330330

331+
chat_template_kwargs?: unknown;
332+
333+
compliance?: 'hipaa';
334+
331335
/**
332336
* Defined the behavior of the API when max_tokens exceed the maximum context
333337
* length of the model. When set to 'error', API will return 400 with appropriate

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ describe('resource completions', () => {
3232
},
3333
],
3434
model: 'meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo',
35+
chat_template_kwargs: {},
36+
compliance: 'hipaa',
3537
context_length_exceeded_behavior: 'truncate',
3638
echo: true,
3739
frequency_penalty: 0,

0 commit comments

Comments
 (0)