From 2b5e0304cf58f95b06b8f09c246a254bd2dde499 Mon Sep 17 00:00:00 2001 From: Carson Date: Mon, 9 Dec 2024 11:36:59 -0600 Subject: [PATCH] Update provider types --- chatlas/types/anthropic/_submit.py | 1 - chatlas/types/openai/_submit.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/chatlas/types/anthropic/_submit.py b/chatlas/types/anthropic/_submit.py index 57e77e5..9e6f9f5 100644 --- a/chatlas/types/anthropic/_submit.py +++ b/chatlas/types/anthropic/_submit.py @@ -32,7 +32,6 @@ class SubmitInputArgs(TypedDict, total=False): "claude-3-haiku-20240307", "claude-2.1", "claude-2.0", - "claude-instant-1.2", ], ] stop_sequences: Union[list[str], anthropic.NotGiven] diff --git a/chatlas/types/openai/_submit.py b/chatlas/types/openai/_submit.py index 7fc1de0..ce5c13f 100644 --- a/chatlas/types/openai/_submit.py +++ b/chatlas/types/openai/_submit.py @@ -6,7 +6,6 @@ from typing import Iterable, Literal, Mapping, Optional, TypedDict, Union import openai -import openai._types import openai.types.chat.chat_completion_assistant_message_param import openai.types.chat.chat_completion_audio_param import openai.types.chat.chat_completion_function_call_option_param @@ -42,6 +41,7 @@ class SubmitInputArgs(TypedDict, total=False): "o1-mini", "o1-mini-2024-09-12", "gpt-4o", + "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-2024-05-13", "gpt-4o-realtime-preview", @@ -129,7 +129,7 @@ class SubmitInputArgs(TypedDict, total=False): top_logprobs: Union[int, None, openai.NotGiven] top_p: Union[float, None, openai.NotGiven] user: str | openai.NotGiven - extra_headers: Optional[Mapping[str, Union[str, openai._types.Omit]]] + extra_headers: Optional[Mapping[str, Union[str, openai.Omit]]] extra_query: Optional[Mapping[str, object]] extra_body: object | None timeout: float | openai.Timeout | None | openai.NotGiven