diff --git a/.stats.yml b/.stats.yml index 564f66a5780..04aa11159dd 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1254 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e162f6d2b8d992c37325f085f70201b88fce7c9fb8959d5fb9f92423f7de9b47.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5e3cc17dacbf34ea6c55cfa520e9852ce21b11a0a722ad53edcc7e7fe4299a1e.yml diff --git a/src/cloudflare/types/workers/ai_run_params.py b/src/cloudflare/types/workers/ai_run_params.py index 0b6793cfc62..8a9b8fd1739 100644 --- a/src/cloudflare/types/workers/ai_run_params.py +++ b/src/cloudflare/types/workers/ai_run_params.py @@ -11,7 +11,7 @@ "TextClassification", "TextToImage", "TextEmbeddings", - "AutomaticSpeechRecognition", + "SpeechRecognition", "ImageClassification", "ObjectDetection", "TextGeneration", @@ -57,7 +57,7 @@ class TextEmbeddings(TypedDict, total=False): text: Required[Union[str, List[str]]] -class AutomaticSpeechRecognition(TypedDict, total=False): +class SpeechRecognition(TypedDict, total=False): account_id: Required[str] audio: Required[Iterable[float]] @@ -142,7 +142,7 @@ class ImageToTextMessage(TypedDict, total=False): TextClassification, TextToImage, TextEmbeddings, - AutomaticSpeechRecognition, + SpeechRecognition, ImageClassification, ObjectDetection, TextGeneration, diff --git a/src/cloudflare/types/workers/ai_run_response.py b/src/cloudflare/types/workers/ai_run_response.py index 004acc6feea..183a54eab1c 100644 --- a/src/cloudflare/types/workers/ai_run_response.py +++ b/src/cloudflare/types/workers/ai_run_response.py @@ -8,8 +8,8 @@ "AIRunResponse", "TextClassification", "TextEmbeddings", - "AutomaticSpeechRecognition", - "AutomaticSpeechRecognitionWord", + "SpeechRecognition", + "SpeechRecognitionWord", "ImageClassification", "ObjectDetection", "ObjectDetectionBox", @@ -33,7 +33,7 @@ class TextEmbeddings(BaseModel): shape: Optional[List[float]] = None -class AutomaticSpeechRecognitionWord(BaseModel): +class SpeechRecognitionWord(BaseModel): end: Optional[float] = None start: Optional[float] = None @@ -41,14 +41,14 @@ class AutomaticSpeechRecognitionWord(BaseModel): word: Optional[str] = None -class AutomaticSpeechRecognition(BaseModel): +class SpeechRecognition(BaseModel): text: str vtt: Optional[str] = None word_count: Optional[float] = None - words: Optional[List[AutomaticSpeechRecognitionWord]] = None + words: Optional[List[SpeechRecognitionWord]] = None class ImageClassification(BaseModel): @@ -103,7 +103,7 @@ class ImageToText(BaseModel): List[TextClassification], object, TextEmbeddings, - AutomaticSpeechRecognition, + SpeechRecognition, List[ImageClassification], List[ObjectDetection], UnionMember6,