Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#1002)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Jun 17, 2024
1 parent 2f1ef0f commit f51ca7b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1348
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d492ae5acff80b29c47150117fb6934a23891c45978e644382ebaa5bbee60222.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-60eaec2f4029582531bbb45c66bb499e91203845eeeb3d507ae7ed5675a6bbe6.yml
15 changes: 12 additions & 3 deletions src/cloudflare/types/workers/ai_run_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"ImageClassification",
"ObjectDetection",
"ObjectDetectionBox",
"Response",
"UnionMember7",
"UnionMember7ToolCall",
"Translation",
"Summarization",
"ImageToText",
Expand Down Expand Up @@ -74,9 +75,17 @@ class ObjectDetection(BaseModel):
score: Optional[float] = None


class Response(BaseModel):
class UnionMember7ToolCall(BaseModel):
arguments: Optional[object] = None

name: Optional[str] = None


class UnionMember7(BaseModel):
response: Optional[str] = None

tool_calls: Optional[List[UnionMember7ToolCall]] = None


class Translation(BaseModel):
translated_text: Optional[str] = None
Expand All @@ -98,7 +107,7 @@ class ImageToText(BaseModel):
SpeechRecognition,
List[ImageClassification],
List[ObjectDetection],
Response,
UnionMember7,
object,
Translation,
Summarization,
Expand Down

0 comments on commit f51ca7b

Please sign in to comment.