Commit 7a0cfb9a
Changed files (3)
src
openai
resources
chat
types
tests
api_resources
src/openai/resources/chat/completions.py
@@ -68,7 +68,6 @@ class Completions(SyncAPIResource):
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,
@@ -123,9 +122,6 @@ class Completions(SyncAPIResource):
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
@@ -263,7 +259,6 @@ class Completions(SyncAPIResource):
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,
@@ -324,9 +319,6 @@ class Completions(SyncAPIResource):
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
@@ -457,7 +449,6 @@ class Completions(SyncAPIResource):
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,
@@ -518,9 +509,6 @@ class Completions(SyncAPIResource):
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
@@ -650,7 +638,6 @@ class Completions(SyncAPIResource):
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,
@@ -682,7 +669,6 @@ class Completions(SyncAPIResource):
"frequency_penalty": frequency_penalty,
"function_call": function_call,
"functions": functions,
- "instance_id": instance_id,
"logit_bias": logit_bias,
"logprobs": logprobs,
"max_tokens": max_tokens,
@@ -749,7 +735,6 @@ class AsyncCompletions(AsyncAPIResource):
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,
@@ -804,9 +789,6 @@ class AsyncCompletions(AsyncAPIResource):
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
@@ -944,7 +926,6 @@ class AsyncCompletions(AsyncAPIResource):
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,
@@ -1005,9 +986,6 @@ class AsyncCompletions(AsyncAPIResource):
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
@@ -1138,7 +1116,6 @@ class AsyncCompletions(AsyncAPIResource):
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,
@@ -1199,9 +1176,6 @@ class AsyncCompletions(AsyncAPIResource):
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
@@ -1331,7 +1305,6 @@ class AsyncCompletions(AsyncAPIResource):
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,
@@ -1363,7 +1336,6 @@ class AsyncCompletions(AsyncAPIResource):
"frequency_penalty": frequency_penalty,
"function_call": function_call,
"functions": functions,
- "instance_id": instance_id,
"logit_bias": logit_bias,
"logprobs": logprobs,
"max_tokens": max_tokens,
src/openai/types/chat/completion_create_params.py
@@ -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.
tests/api_resources/chat/test_completions.py
@@ -50,7 +50,6 @@ class TestCompletions:
"parameters": {"foo": "bar"},
}
],
- instance_id="string",
logit_bias={"foo": 0},
logprobs=True,
max_tokens=0,
@@ -165,7 +164,6 @@ class TestCompletions:
"parameters": {"foo": "bar"},
}
],
- instance_id="string",
logit_bias={"foo": 0},
logprobs=True,
max_tokens=0,
@@ -282,7 +280,6 @@ class TestAsyncCompletions:
"parameters": {"foo": "bar"},
}
],
- instance_id="string",
logit_bias={"foo": 0},
logprobs=True,
max_tokens=0,
@@ -397,7 +394,6 @@ class TestAsyncCompletions:
"parameters": {"foo": "bar"},
}
],
- instance_id="string",
logit_bias={"foo": 0},
logprobs=True,
max_tokens=0,