Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): OpenAPI spec update via Stainless API #1610

Merged
merged 1 commit into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions workers/ai.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ func (r AIRunResponseTextEmbeddings) ImplementsWorkersAIRunResponse() {}

type AIRunResponseSpeechRecognition struct {
Text string `json:"text,required"`
Vtt string `json:"vtt"`
WordCount float64 `json:"word_count"`
Words []AIRunResponseSpeechRecognitionWord `json:"words"`
JSON aiRunResponseSpeechRecognitionJSON `json:"-"`
Expand All @@ -168,6 +169,7 @@ type AIRunResponseSpeechRecognition struct {
// [AIRunResponseSpeechRecognition]
type aiRunResponseSpeechRecognitionJSON struct {
Text apijson.Field
Vtt apijson.Field
WordCount apijson.Field
Words apijson.Field
raw string
Expand Down
2 changes: 1 addition & 1 deletion workers/ai_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func TestAIRunWithOptionalParams(t *testing.T) {
"string",
workers.AIRunParamsTextClassification{
AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
Text: cloudflare.F("string"),
Text: cloudflare.F("x"),
},
)
if err != nil {
Expand Down