Skip to content

Commit 1abe139

Browse files
fix(api): remove non-GA instance_id param (#1164)
1 parent e536437 commit 1abe139

File tree

3 files changed

+0
-38
lines changed

3 files changed

+0
-38
lines changed

src/openai/resources/chat/completions.py

-28
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ def create(
6868
frequency_penalty: Optional[float] | NotGiven = NOT_GIVEN,
6969
function_call: completion_create_params.FunctionCall | NotGiven = NOT_GIVEN,
7070
functions: Iterable[completion_create_params.Function] | NotGiven = NOT_GIVEN,
71-
instance_id: Optional[str] | NotGiven = NOT_GIVEN,
7271
logit_bias: Optional[Dict[str, int]] | NotGiven = NOT_GIVEN,
7372
logprobs: Optional[bool] | NotGiven = NOT_GIVEN,
7473
max_tokens: Optional[int] | NotGiven = NOT_GIVEN,
@@ -123,9 +122,6 @@ def create(
123122
124123
A list of functions the model may generate JSON inputs for.
125124
126-
instance_id: An unique identifier to a custom instance to execute the request. The requesting
127-
organization is required to have access to the instance.
128-
129125
logit_bias: Modify the likelihood of specified tokens appearing in the completion.
130126
131127
Accepts a JSON object that maps tokens (specified by their token ID in the
@@ -263,7 +259,6 @@ def create(
263259
frequency_penalty: Optional[float] | NotGiven = NOT_GIVEN,
264260
function_call: completion_create_params.FunctionCall | NotGiven = NOT_GIVEN,
265261
functions: Iterable[completion_create_params.Function] | NotGiven = NOT_GIVEN,
266-
instance_id: Optional[str] | NotGiven = NOT_GIVEN,
267262
logit_bias: Optional[Dict[str, int]] | NotGiven = NOT_GIVEN,
268263
logprobs: Optional[bool] | NotGiven = NOT_GIVEN,
269264
max_tokens: Optional[int] | NotGiven = NOT_GIVEN,
@@ -324,9 +319,6 @@ def create(
324319
325320
A list of functions the model may generate JSON inputs for.
326321
327-
instance_id: An unique identifier to a custom instance to execute the request. The requesting
328-
organization is required to have access to the instance.
329-
330322
logit_bias: Modify the likelihood of specified tokens appearing in the completion.
331323
332324
Accepts a JSON object that maps tokens (specified by their token ID in the
@@ -457,7 +449,6 @@ def create(
457449
frequency_penalty: Optional[float] | NotGiven = NOT_GIVEN,
458450
function_call: completion_create_params.FunctionCall | NotGiven = NOT_GIVEN,
459451
functions: Iterable[completion_create_params.Function] | NotGiven = NOT_GIVEN,
460-
instance_id: Optional[str] | NotGiven = NOT_GIVEN,
461452
logit_bias: Optional[Dict[str, int]] | NotGiven = NOT_GIVEN,
462453
logprobs: Optional[bool] | NotGiven = NOT_GIVEN,
463454
max_tokens: Optional[int] | NotGiven = NOT_GIVEN,
@@ -518,9 +509,6 @@ def create(
518509
519510
A list of functions the model may generate JSON inputs for.
520511
521-
instance_id: An unique identifier to a custom instance to execute the request. The requesting
522-
organization is required to have access to the instance.
523-
524512
logit_bias: Modify the likelihood of specified tokens appearing in the completion.
525513
526514
Accepts a JSON object that maps tokens (specified by their token ID in the
@@ -650,7 +638,6 @@ def create(
650638
frequency_penalty: Optional[float] | NotGiven = NOT_GIVEN,
651639
function_call: completion_create_params.FunctionCall | NotGiven = NOT_GIVEN,
652640
functions: Iterable[completion_create_params.Function] | NotGiven = NOT_GIVEN,
653-
instance_id: Optional[str] | NotGiven = NOT_GIVEN,
654641
logit_bias: Optional[Dict[str, int]] | NotGiven = NOT_GIVEN,
655642
logprobs: Optional[bool] | NotGiven = NOT_GIVEN,
656643
max_tokens: Optional[int] | NotGiven = NOT_GIVEN,
@@ -682,7 +669,6 @@ def create(
682669
"frequency_penalty": frequency_penalty,
683670
"function_call": function_call,
684671
"functions": functions,
685-
"instance_id": instance_id,
686672
"logit_bias": logit_bias,
687673
"logprobs": logprobs,
688674
"max_tokens": max_tokens,
@@ -749,7 +735,6 @@ async def create(
749735
frequency_penalty: Optional[float] | NotGiven = NOT_GIVEN,
750736
function_call: completion_create_params.FunctionCall | NotGiven = NOT_GIVEN,
751737
functions: Iterable[completion_create_params.Function] | NotGiven = NOT_GIVEN,
752-
instance_id: Optional[str] | NotGiven = NOT_GIVEN,
753738
logit_bias: Optional[Dict[str, int]] | NotGiven = NOT_GIVEN,
754739
logprobs: Optional[bool] | NotGiven = NOT_GIVEN,
755740
max_tokens: Optional[int] | NotGiven = NOT_GIVEN,
@@ -804,9 +789,6 @@ async def create(
804789
805790
A list of functions the model may generate JSON inputs for.
806791
807-
instance_id: An unique identifier to a custom instance to execute the request. The requesting
808-
organization is required to have access to the instance.
809-
810792
logit_bias: Modify the likelihood of specified tokens appearing in the completion.
811793
812794
Accepts a JSON object that maps tokens (specified by their token ID in the
@@ -944,7 +926,6 @@ async def create(
944926
frequency_penalty: Optional[float] | NotGiven = NOT_GIVEN,
945927
function_call: completion_create_params.FunctionCall | NotGiven = NOT_GIVEN,
946928
functions: Iterable[completion_create_params.Function] | NotGiven = NOT_GIVEN,
947-
instance_id: Optional[str] | NotGiven = NOT_GIVEN,
948929
logit_bias: Optional[Dict[str, int]] | NotGiven = NOT_GIVEN,
949930
logprobs: Optional[bool] | NotGiven = NOT_GIVEN,
950931
max_tokens: Optional[int] | NotGiven = NOT_GIVEN,
@@ -1005,9 +986,6 @@ async def create(
1005986
1006987
A list of functions the model may generate JSON inputs for.
1007988
1008-
instance_id: An unique identifier to a custom instance to execute the request. The requesting
1009-
organization is required to have access to the instance.
1010-
1011989
logit_bias: Modify the likelihood of specified tokens appearing in the completion.
1012990
1013991
Accepts a JSON object that maps tokens (specified by their token ID in the
@@ -1138,7 +1116,6 @@ async def create(
11381116
frequency_penalty: Optional[float] | NotGiven = NOT_GIVEN,
11391117
function_call: completion_create_params.FunctionCall | NotGiven = NOT_GIVEN,
11401118
functions: Iterable[completion_create_params.Function] | NotGiven = NOT_GIVEN,
1141-
instance_id: Optional[str] | NotGiven = NOT_GIVEN,
11421119
logit_bias: Optional[Dict[str, int]] | NotGiven = NOT_GIVEN,
11431120
logprobs: Optional[bool] | NotGiven = NOT_GIVEN,
11441121
max_tokens: Optional[int] | NotGiven = NOT_GIVEN,
@@ -1199,9 +1176,6 @@ async def create(
11991176
12001177
A list of functions the model may generate JSON inputs for.
12011178
1202-
instance_id: An unique identifier to a custom instance to execute the request. The requesting
1203-
organization is required to have access to the instance.
1204-
12051179
logit_bias: Modify the likelihood of specified tokens appearing in the completion.
12061180
12071181
Accepts a JSON object that maps tokens (specified by their token ID in the
@@ -1331,7 +1305,6 @@ async def create(
13311305
frequency_penalty: Optional[float] | NotGiven = NOT_GIVEN,
13321306
function_call: completion_create_params.FunctionCall | NotGiven = NOT_GIVEN,
13331307
functions: Iterable[completion_create_params.Function] | NotGiven = NOT_GIVEN,
1334-
instance_id: Optional[str] | NotGiven = NOT_GIVEN,
13351308
logit_bias: Optional[Dict[str, int]] | NotGiven = NOT_GIVEN,
13361309
logprobs: Optional[bool] | NotGiven = NOT_GIVEN,
13371310
max_tokens: Optional[int] | NotGiven = NOT_GIVEN,
@@ -1363,7 +1336,6 @@ async def create(
13631336
"frequency_penalty": frequency_penalty,
13641337
"function_call": function_call,
13651338
"functions": functions,
1366-
"instance_id": instance_id,
13671339
"logit_bias": logit_bias,
13681340
"logprobs": logprobs,
13691341
"max_tokens": max_tokens,

src/openai/types/chat/completion_create_params.py

-6
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,6 @@ class CompletionCreateParamsBase(TypedDict, total=False):
8787
A list of functions the model may generate JSON inputs for.
8888
"""
8989

90-
instance_id: Optional[str]
91-
"""An unique identifier to a custom instance to execute the request.
92-
93-
The requesting organization is required to have access to the instance.
94-
"""
95-
9690
logit_bias: Optional[Dict[str, int]]
9791
"""Modify the likelihood of specified tokens appearing in the completion.
9892

tests/api_resources/chat/test_completions.py

-4
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ def test_method_create_with_all_params_overload_1(self, client: OpenAI) -> None:
5050
"parameters": {"foo": "bar"},
5151
}
5252
],
53-
instance_id="string",
5453
logit_bias={"foo": 0},
5554
logprobs=True,
5655
max_tokens=0,
@@ -165,7 +164,6 @@ def test_method_create_with_all_params_overload_2(self, client: OpenAI) -> None:
165164
"parameters": {"foo": "bar"},
166165
}
167166
],
168-
instance_id="string",
169167
logit_bias={"foo": 0},
170168
logprobs=True,
171169
max_tokens=0,
@@ -282,7 +280,6 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn
282280
"parameters": {"foo": "bar"},
283281
}
284282
],
285-
instance_id="string",
286283
logit_bias={"foo": 0},
287284
logprobs=True,
288285
max_tokens=0,
@@ -397,7 +394,6 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn
397394
"parameters": {"foo": "bar"},
398395
}
399396
],
400-
instance_id="string",
401397
logit_bias={"foo": 0},
402398
logprobs=True,
403399
max_tokens=0,

0 commit comments

Comments
 (0)