Skip to content

Commit 3330a3b

Browse files
fixed tests
Signed-off-by: Mads Kildegård <[email protected]>
1 parent 4fcb874 commit 3330a3b

33 files changed

+79
-69
lines changed

src/Responses/Responses/Streaming/CodeInterpreterCall.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use OpenAI\Testing\Responses\Concerns\Fakeable;
1313

1414
/**
15-
* @phpstan-type CodeInterpreterCallType array{item_id: string, output_index: int}
15+
* @phpstan-type CodeInterpreterCallType array{type: string, item_id: string, output_index: int}
1616
*
1717
* @implements ResponseContract<CodeInterpreterCallType>
1818
*/

src/Responses/Responses/Streaming/CodeInterpreterCodeDelta.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use OpenAI\Testing\Responses\Concerns\Fakeable;
1313

1414
/**
15-
* @phpstan-type CodeInterpreterCodeDeltaType array{delta: string, item_id: string, output_index: int}
15+
* @phpstan-type CodeInterpreterCodeDeltaType array{type: string, delta: string, item_id: string, output_index: int}
1616
*
1717
* @implements ResponseContract<CodeInterpreterCodeDeltaType>
1818
*/

src/Responses/Responses/Streaming/CodeInterpreterCodeDone.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use OpenAI\Testing\Responses\Concerns\Fakeable;
1313

1414
/**
15-
* @phpstan-type CodeInterpreterCodeDoneType array{code: string, item_id: string, output_index: int}
15+
* @phpstan-type CodeInterpreterCodeDoneType array{type: string, code: string, item_id: string, output_index: int}
1616
*
1717
* @implements ResponseContract<CodeInterpreterCodeDoneType>
1818
*/

src/Responses/Responses/Streaming/ContentPart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @phpstan-import-type OutputTextType from OutputMessageContentOutputText
1818
* @phpstan-import-type ContentRefusalType from OutputMessageContentRefusal
1919
*
20-
* @phpstan-type ContentPartType array{content_index: int, item_id: string, output_index: int, part: OutputTextType|ContentRefusalType}
20+
* @phpstan-type ContentPartType array{type: string, content_index: int, item_id: string, output_index: int, part: OutputTextType|ContentRefusalType}
2121
*
2222
* @implements ResponseContract<ContentPartType>
2323
*/

src/Responses/Responses/Streaming/Error.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use OpenAI\Testing\Responses\Concerns\Fakeable;
1313

1414
/**
15-
* @phpstan-type ErrorType array{code: string|null, message: string, param: string|null}
15+
* @phpstan-type ErrorType array{type: string, code: string|null, message: string, param: string|null}
1616
*
1717
* @implements ResponseContract<ErrorType>
1818
*/

src/Responses/Responses/Streaming/FileSearchCall.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use OpenAI\Testing\Responses\Concerns\Fakeable;
1313

1414
/**
15-
* @phpstan-type FileSearchCallType array{item_id: string, output_index: int}
15+
* @phpstan-type FileSearchCallType array{type: string, item_id: string, output_index: int}
1616
*
1717
* @implements ResponseContract<FileSearchCallType>
1818
*/

src/Responses/Responses/Streaming/FunctionCallArgumentsDelta.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use OpenAI\Testing\Responses\Concerns\Fakeable;
1313

1414
/**
15-
* @phpstan-type FunctionCallArgumentsDeltaType array{delta: string, item_id: string, output_index: int}
15+
* @phpstan-type FunctionCallArgumentsDeltaType array{type: string, delta: string, item_id: string, output_index: int}
1616
*
1717
* @implements ResponseContract<FunctionCallArgumentsDeltaType>
1818
*/

src/Responses/Responses/Streaming/FunctionCallArgumentsDone.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use OpenAI\Testing\Responses\Concerns\Fakeable;
1313

1414
/**
15-
* @phpstan-type FunctionCallArgumentsDoneType array{arguments: string, item_id: string, output_index: int}
15+
* @phpstan-type FunctionCallArgumentsDoneType array{type: string, arguments: string, item_id: string, output_index: int}
1616
*
1717
* @implements ResponseContract<FunctionCallArgumentsDoneType>
1818
*/

src/Responses/Responses/Streaming/ImageGenerationPart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use OpenAI\Testing\Responses\Concerns\Fakeable;
1313

1414
/**
15-
* @phpstan-type ImageGenerationPartType array{output_index: int, item_id: string, sequence_number: int}
15+
* @phpstan-type ImageGenerationPartType array{type: string, output_index: int, item_id: string, sequence_number: int}
1616
*
1717
* @implements ResponseContract<ImageGenerationPartType>
1818
*/

src/Responses/Responses/Streaming/ImageGenerationPartialImage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use OpenAI\Testing\Responses\Concerns\Fakeable;
1313

1414
/**
15-
* @phpstan-type ImageGenerationPartialImageType array{output_index: int, item_id: string, sequence_number: int, partial_image_index: int, partial_image_b64: string}
15+
* @phpstan-type ImageGenerationPartialImageType array{type: string, output_index: int, item_id: string, sequence_number: int, partial_image_index: int, partial_image_b64: string}
1616
*
1717
* @implements ResponseContract<ImageGenerationPartialImageType>
1818
*/

0 commit comments

Comments
 (0)