Skip to content

Commit

Permalink
fix(types): correctly mark type as a required property in requests (#371
Browse files Browse the repository at this point in the history
)
  • Loading branch information
stainless-bot committed Apr 4, 2024
1 parent cffc3f6 commit a04edd8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/bedrock-sdk/yarn.lock
Expand Up @@ -16,7 +16,7 @@
"@jridgewell/trace-mapping" "^0.3.9"

"@anthropic-ai/sdk@file:../../dist":
version "0.19.1"
version "0.19.2"
dependencies:
"@types/node" "^18.11.18"
"@types/node-fetch" "^2.6.4"
Expand Down
2 changes: 1 addition & 1 deletion packages/vertex-sdk/yarn.lock
Expand Up @@ -16,7 +16,7 @@
"@jridgewell/trace-mapping" "^0.3.9"

"@anthropic-ai/sdk@file:../../dist":
version "0.19.1"
version "0.19.2"
dependencies:
"@types/node" "^18.11.18"
"@types/node-fetch" "^2.6.4"
Expand Down
6 changes: 3 additions & 3 deletions src/resources/messages.ts
Expand Up @@ -78,7 +78,7 @@ export interface ContentBlockStopEvent {
export interface ImageBlockParam {
source: ImageBlockParam.Source;

type?: 'image';
type: 'image';
}

export namespace ImageBlockParam {
Expand All @@ -87,7 +87,7 @@ export namespace ImageBlockParam {

media_type: 'image/jpeg' | 'image/png' | 'image/gif' | 'image/webp';

type?: 'base64';
type: 'base64';
}
}

Expand Down Expand Up @@ -260,7 +260,7 @@ export type MessageStreamEvent =
export interface TextBlock {
text: string;

type?: 'text';
type: 'text';
}

export interface TextDelta {
Expand Down

0 comments on commit a04edd8

Please sign in to comment.