Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#959)
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 00f21ed commit 3f1e096
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 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
14 changes: 12 additions & 2 deletions src/resources/workers/ai/ai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export type AIRunResponse =
| AIRunResponse.SpeechRecognition
| Array<AIRunResponse.ImageClassification>
| Array<AIRunResponse.ObjectDetection>
| AIRunResponse.Response
| AIRunResponse.UnionMember7
| Uploadable
| AIRunResponse.Translation
| AIRunResponse.Summarization
Expand Down Expand Up @@ -104,8 +104,18 @@ export namespace AIRunResponse {
}
}

export interface Response {
export interface UnionMember7 {
response?: string;

tool_calls?: Array<UnionMember7.ToolCall>;
}

export namespace UnionMember7 {
export interface ToolCall {
arguments?: unknown;

name?: string;
}
}

export interface Translation {
Expand Down

0 comments on commit 3f1e096

Please sign in to comment.