Skip to content

Commit

Permalink
fix(api): remove non-GA instance_id param (#1164)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Feb 19, 2024
1 parent e536437 commit 1abe139
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 38 deletions.
28 changes: 0 additions & 28 deletions src/openai/resources/chat/completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ def create(
frequency_penalty: Optional[float] | NotGiven = NOT_GIVEN,
function_call: completion_create_params.FunctionCall | NotGiven = NOT_GIVEN,
functions: Iterable[completion_create_params.Function] | NotGiven = NOT_GIVEN,
instance_id: Optional[str] | NotGiven = NOT_GIVEN,
logit_bias: Optional[Dict[str, int]] | NotGiven = NOT_GIVEN,
logprobs: Optional[bool] | NotGiven = NOT_GIVEN,
max_tokens: Optional[int] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -123,9 +122,6 @@ def create(
A list of functions the model may generate JSON inputs for.
instance_id: An unique identifier to a custom instance to execute the request. The requesting
organization is required to have access to the instance.
logit_bias: Modify the likelihood of specified tokens appearing in the completion.
Accepts a JSON object that maps tokens (specified by their token ID in the
Expand Down Expand Up @@ -263,7 +259,6 @@ def create(
frequency_penalty: Optional[float] | NotGiven = NOT_GIVEN,
function_call: completion_create_params.FunctionCall | NotGiven = NOT_GIVEN,
functions: Iterable[completion_create_params.Function] | NotGiven = NOT_GIVEN,
instance_id: Optional[str] | NotGiven = NOT_GIVEN,
logit_bias: Optional[Dict[str, int]] | NotGiven = NOT_GIVEN,
logprobs: Optional[bool] | NotGiven = NOT_GIVEN,
max_tokens: Optional[int] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -324,9 +319,6 @@ def create(
A list of functions the model may generate JSON inputs for.
instance_id: An unique identifier to a custom instance to execute the request. The requesting
organization is required to have access to the instance.
logit_bias: Modify the likelihood of specified tokens appearing in the completion.
Accepts a JSON object that maps tokens (specified by their token ID in the
Expand Down Expand Up @@ -457,7 +449,6 @@ def create(
frequency_penalty: Optional[float] | NotGiven = NOT_GIVEN,
function_call: completion_create_params.FunctionCall | NotGiven = NOT_GIVEN,
functions: Iterable[completion_create_params.Function] | NotGiven = NOT_GIVEN,
instance_id: Optional[str] | NotGiven = NOT_GIVEN,
logit_bias: Optional[Dict[str, int]] | NotGiven = NOT_GIVEN,
logprobs: Optional[bool] | NotGiven = NOT_GIVEN,
max_tokens: Optional[int] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -518,9 +509,6 @@ def create(
A list of functions the model may generate JSON inputs for.
instance_id: An unique identifier to a custom instance to execute the request. The requesting
organization is required to have access to the instance.
logit_bias: Modify the likelihood of specified tokens appearing in the completion.
Accepts a JSON object that maps tokens (specified by their token ID in the
Expand Down Expand Up @@ -650,7 +638,6 @@ def create(
frequency_penalty: Optional[float] | NotGiven = NOT_GIVEN,
function_call: completion_create_params.FunctionCall | NotGiven = NOT_GIVEN,
functions: Iterable[completion_create_params.Function] | NotGiven = NOT_GIVEN,
instance_id: Optional[str] | NotGiven = NOT_GIVEN,
logit_bias: Optional[Dict[str, int]] | NotGiven = NOT_GIVEN,
logprobs: Optional[bool] | NotGiven = NOT_GIVEN,
max_tokens: Optional[int] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -682,7 +669,6 @@ def create(
"frequency_penalty": frequency_penalty,
"function_call": function_call,
"functions": functions,
"instance_id": instance_id,
"logit_bias": logit_bias,
"logprobs": logprobs,
"max_tokens": max_tokens,
Expand Down Expand Up @@ -749,7 +735,6 @@ async def create(
frequency_penalty: Optional[float] | NotGiven = NOT_GIVEN,
function_call: completion_create_params.FunctionCall | NotGiven = NOT_GIVEN,
functions: Iterable[completion_create_params.Function] | NotGiven = NOT_GIVEN,
instance_id: Optional[str] | NotGiven = NOT_GIVEN,
logit_bias: Optional[Dict[str, int]] | NotGiven = NOT_GIVEN,
logprobs: Optional[bool] | NotGiven = NOT_GIVEN,
max_tokens: Optional[int] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -804,9 +789,6 @@ async def create(
A list of functions the model may generate JSON inputs for.
instance_id: An unique identifier to a custom instance to execute the request. The requesting
organization is required to have access to the instance.
logit_bias: Modify the likelihood of specified tokens appearing in the completion.
Accepts a JSON object that maps tokens (specified by their token ID in the
Expand Down Expand Up @@ -944,7 +926,6 @@ async def create(
frequency_penalty: Optional[float] | NotGiven = NOT_GIVEN,
function_call: completion_create_params.FunctionCall | NotGiven = NOT_GIVEN,
functions: Iterable[completion_create_params.Function] | NotGiven = NOT_GIVEN,
instance_id: Optional[str] | NotGiven = NOT_GIVEN,
logit_bias: Optional[Dict[str, int]] | NotGiven = NOT_GIVEN,
logprobs: Optional[bool] | NotGiven = NOT_GIVEN,
max_tokens: Optional[int] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -1005,9 +986,6 @@ async def create(
A list of functions the model may generate JSON inputs for.
instance_id: An unique identifier to a custom instance to execute the request. The requesting
organization is required to have access to the instance.
logit_bias: Modify the likelihood of specified tokens appearing in the completion.
Accepts a JSON object that maps tokens (specified by their token ID in the
Expand Down Expand Up @@ -1138,7 +1116,6 @@ async def create(
frequency_penalty: Optional[float] | NotGiven = NOT_GIVEN,
function_call: completion_create_params.FunctionCall | NotGiven = NOT_GIVEN,
functions: Iterable[completion_create_params.Function] | NotGiven = NOT_GIVEN,
instance_id: Optional[str] | NotGiven = NOT_GIVEN,
logit_bias: Optional[Dict[str, int]] | NotGiven = NOT_GIVEN,
logprobs: Optional[bool] | NotGiven = NOT_GIVEN,
max_tokens: Optional[int] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -1199,9 +1176,6 @@ async def create(
A list of functions the model may generate JSON inputs for.
instance_id: An unique identifier to a custom instance to execute the request. The requesting
organization is required to have access to the instance.
logit_bias: Modify the likelihood of specified tokens appearing in the completion.
Accepts a JSON object that maps tokens (specified by their token ID in the
Expand Down Expand Up @@ -1331,7 +1305,6 @@ async def create(
frequency_penalty: Optional[float] | NotGiven = NOT_GIVEN,
function_call: completion_create_params.FunctionCall | NotGiven = NOT_GIVEN,
functions: Iterable[completion_create_params.Function] | NotGiven = NOT_GIVEN,
instance_id: Optional[str] | NotGiven = NOT_GIVEN,
logit_bias: Optional[Dict[str, int]] | NotGiven = NOT_GIVEN,
logprobs: Optional[bool] | NotGiven = NOT_GIVEN,
max_tokens: Optional[int] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -1363,7 +1336,6 @@ async def create(
"frequency_penalty": frequency_penalty,
"function_call": function_call,
"functions": functions,
"instance_id": instance_id,
"logit_bias": logit_bias,
"logprobs": logprobs,
"max_tokens": max_tokens,
Expand Down
6 changes: 0 additions & 6 deletions src/openai/types/chat/completion_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,6 @@ class CompletionCreateParamsBase(TypedDict, total=False):
A list of functions the model may generate JSON inputs for.
"""

instance_id: Optional[str]
"""An unique identifier to a custom instance to execute the request.
The requesting organization is required to have access to the instance.
"""

logit_bias: Optional[Dict[str, int]]
"""Modify the likelihood of specified tokens appearing in the completion.
Expand Down
4 changes: 0 additions & 4 deletions tests/api_resources/chat/test_completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def test_method_create_with_all_params_overload_1(self, client: OpenAI) -> None:
"parameters": {"foo": "bar"},
}
],
instance_id="string",
logit_bias={"foo": 0},
logprobs=True,
max_tokens=0,
Expand Down Expand Up @@ -165,7 +164,6 @@ def test_method_create_with_all_params_overload_2(self, client: OpenAI) -> None:
"parameters": {"foo": "bar"},
}
],
instance_id="string",
logit_bias={"foo": 0},
logprobs=True,
max_tokens=0,
Expand Down Expand Up @@ -282,7 +280,6 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn
"parameters": {"foo": "bar"},
}
],
instance_id="string",
logit_bias={"foo": 0},
logprobs=True,
max_tokens=0,
Expand Down Expand Up @@ -397,7 +394,6 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn
"parameters": {"foo": "bar"},
}
],
instance_id="string",
logit_bias={"foo": 0},
logprobs=True,
max_tokens=0,
Expand Down

0 comments on commit 1abe139

Please sign in to comment.