Skip to content

Commit b017f04

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#1149)
1 parent 9026ba1 commit b017f04

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1254
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e162f6d2b8d992c37325f085f70201b88fce7c9fb8959d5fb9f92423f7de9b47.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5e3cc17dacbf34ea6c55cfa520e9852ce21b11a0a722ad53edcc7e7fe4299a1e.yml

src/cloudflare/types/workers/ai_run_params.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"TextClassification",
1212
"TextToImage",
1313
"TextEmbeddings",
14-
"AutomaticSpeechRecognition",
14+
"SpeechRecognition",
1515
"ImageClassification",
1616
"ObjectDetection",
1717
"TextGeneration",
@@ -57,7 +57,7 @@ class TextEmbeddings(TypedDict, total=False):
5757
text: Required[Union[str, List[str]]]
5858

5959

60-
class AutomaticSpeechRecognition(TypedDict, total=False):
60+
class SpeechRecognition(TypedDict, total=False):
6161
account_id: Required[str]
6262

6363
audio: Required[Iterable[float]]
@@ -142,7 +142,7 @@ class ImageToTextMessage(TypedDict, total=False):
142142
TextClassification,
143143
TextToImage,
144144
TextEmbeddings,
145-
AutomaticSpeechRecognition,
145+
SpeechRecognition,
146146
ImageClassification,
147147
ObjectDetection,
148148
TextGeneration,

src/cloudflare/types/workers/ai_run_response.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"AIRunResponse",
99
"TextClassification",
1010
"TextEmbeddings",
11-
"AutomaticSpeechRecognition",
12-
"AutomaticSpeechRecognitionWord",
11+
"SpeechRecognition",
12+
"SpeechRecognitionWord",
1313
"ImageClassification",
1414
"ObjectDetection",
1515
"ObjectDetectionBox",
@@ -33,22 +33,22 @@ class TextEmbeddings(BaseModel):
3333
shape: Optional[List[float]] = None
3434

3535

36-
class AutomaticSpeechRecognitionWord(BaseModel):
36+
class SpeechRecognitionWord(BaseModel):
3737
end: Optional[float] = None
3838

3939
start: Optional[float] = None
4040

4141
word: Optional[str] = None
4242

4343

44-
class AutomaticSpeechRecognition(BaseModel):
44+
class SpeechRecognition(BaseModel):
4545
text: str
4646

4747
vtt: Optional[str] = None
4848

4949
word_count: Optional[float] = None
5050

51-
words: Optional[List[AutomaticSpeechRecognitionWord]] = None
51+
words: Optional[List[SpeechRecognitionWord]] = None
5252

5353

5454
class ImageClassification(BaseModel):
@@ -103,7 +103,7 @@ class ImageToText(BaseModel):
103103
List[TextClassification],
104104
object,
105105
TextEmbeddings,
106-
AutomaticSpeechRecognition,
106+
SpeechRecognition,
107107
List[ImageClassification],
108108
List[ObjectDetection],
109109
UnionMember6,

0 commit comments

Comments
 (0)