Skip to content

Commit 8ae07cc

Browse files
RobertCraigiestainless-app[bot]
authored andcommitted
fix(responses): correctly add output_text
1 parent 0bc08d1 commit 8ae07cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resources/responses/responses.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class Responses extends APIResource {
7979
| APIPromise<Response>
8080
| APIPromise<Stream<ResponseStreamEvent>>
8181
)._thenUnwrap((rsp) => {
82-
if ('type' in rsp && rsp.type === 'response') {
82+
if ('object' in rsp && rsp.object === 'response') {
8383
addOutputText(rsp as Response);
8484
}
8585

0 commit comments

Comments
 (0)