Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e1900f9

Browse files
committedFeb 12, 2024
feat(api): updates (#669)
1 parent 2f45024 commit e1900f9

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
 

‎src/resources/chat/completions.ts

+6
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,12 @@ export interface ChatCompletionCreateParamsBase {
708708
*/
709709
functions?: Array<ChatCompletionCreateParams.Function>;
710710

711+
/**
712+
* An unique identifier to a custom instance to execute the request. The requesting
713+
* organization is required to have access to the instance.
714+
*/
715+
instance_id?: string | null;
716+
711717
/**
712718
* Modify the likelihood of specified tokens appearing in the completion.
713719
*

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

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ describe('resource completions', () => {
3030
frequency_penalty: -2,
3131
function_call: 'none',
3232
functions: [{ description: 'string', name: 'string', parameters: { foo: 'bar' } }],
33+
instance_id: 'string',
3334
logit_bias: { foo: 0 },
3435
logprobs: true,
3536
max_tokens: 0,

0 commit comments

Comments
 (0)
Please sign in to comment.