Commit 4f89244d
Changed files (4)
src
openai
src/openai/resources/chat/completions.py
@@ -43,6 +43,8 @@ class Completions(SyncAPIResource):
model: Union[
str,
Literal[
+ "gpt-4-1106-preview",
+ "gpt-4-vision-preview",
"gpt-4",
"gpt-4-0314",
"gpt-4-0613",
@@ -201,6 +203,8 @@ class Completions(SyncAPIResource):
model: Union[
str,
Literal[
+ "gpt-4-1106-preview",
+ "gpt-4-vision-preview",
"gpt-4",
"gpt-4-0314",
"gpt-4-0613",
@@ -359,6 +363,8 @@ class Completions(SyncAPIResource):
model: Union[
str,
Literal[
+ "gpt-4-1106-preview",
+ "gpt-4-vision-preview",
"gpt-4",
"gpt-4-0314",
"gpt-4-0613",
@@ -517,6 +523,8 @@ class Completions(SyncAPIResource):
model: Union[
str,
Literal[
+ "gpt-4-1106-preview",
+ "gpt-4-vision-preview",
"gpt-4",
"gpt-4-0314",
"gpt-4-0613",
@@ -602,6 +610,8 @@ class AsyncCompletions(AsyncAPIResource):
model: Union[
str,
Literal[
+ "gpt-4-1106-preview",
+ "gpt-4-vision-preview",
"gpt-4",
"gpt-4-0314",
"gpt-4-0613",
@@ -760,6 +770,8 @@ class AsyncCompletions(AsyncAPIResource):
model: Union[
str,
Literal[
+ "gpt-4-1106-preview",
+ "gpt-4-vision-preview",
"gpt-4",
"gpt-4-0314",
"gpt-4-0613",
@@ -918,6 +930,8 @@ class AsyncCompletions(AsyncAPIResource):
model: Union[
str,
Literal[
+ "gpt-4-1106-preview",
+ "gpt-4-vision-preview",
"gpt-4",
"gpt-4-0314",
"gpt-4-0613",
@@ -1076,6 +1090,8 @@ class AsyncCompletions(AsyncAPIResource):
model: Union[
str,
Literal[
+ "gpt-4-1106-preview",
+ "gpt-4-vision-preview",
"gpt-4",
"gpt-4-0314",
"gpt-4-0613",
src/openai/types/chat/chat_completion_chunk.py
@@ -109,3 +109,10 @@ class ChatCompletionChunk(BaseModel):
object: Literal["chat.completion.chunk"]
"""The object type, which is always `chat.completion.chunk`."""
+
+ system_fingerprint: Optional[str] = None
+ """This fingerprint represents the backend configuration that the model runs with.
+
+ Can be used in conjunction with the `seed` request parameter to understand when
+ backend changes have been made that might impact determinism.
+ """
src/openai/types/chat/chat_completion_content_part_image_param.py
@@ -8,12 +8,12 @@ __all__ = ["ChatCompletionContentPartImageParam", "ImageURL"]
class ImageURL(TypedDict, total=False):
+ url: Required[str]
+ """Either a URL of the image or the base64 encoded image data."""
+
detail: Literal["auto", "low", "high"]
"""Specifies the detail level of the image."""
- url: str
- """Either a URL of the image or the base64 encoded image data."""
-
class ChatCompletionContentPartImageParam(TypedDict, total=False):
image_url: Required[ImageURL]
src/openai/types/chat/completion_create_params.py
@@ -35,6 +35,8 @@ class CompletionCreateParamsBase(TypedDict, total=False):
Union[
str,
Literal[
+ "gpt-4-1106-preview",
+ "gpt-4-vision-preview",
"gpt-4",
"gpt-4-0314",
"gpt-4-0613",