File tree Expand file tree Collapse file tree 3 files changed +1
-25
lines changed
src/resources/beta/messages Expand file tree Collapse file tree 3 files changed +1
-25
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ export class Batches extends APIResource {
178
178
*/
179
179
async results (
180
180
messageBatchId : string ,
181
- params : BatchResultsParams | undefined = { } ,
181
+ params : BatchResultsParams | undefined ,
182
182
options ?: Core . RequestOptions ,
183
183
) : Promise < JSONLDecoder < BetaMessageBatchIndividualResponse > > ;
184
184
async results (
Original file line number Diff line number Diff line change @@ -205,18 +205,6 @@ describe('resource batches', () => {
205
205
) . rejects . toThrow ( Anthropic . NotFoundError ) ;
206
206
} ) ;
207
207
208
- // Prism doesn't support JSONL responses yet
209
- test . skip ( 'results' , async ( ) => {
210
- const responsePromise = client . beta . messages . batches . results ( 'message_batch_id' ) ;
211
- const rawResponse = await responsePromise . asResponse ( ) ;
212
- expect ( rawResponse ) . toBeInstanceOf ( Response ) ;
213
- const response = await responsePromise ;
214
- expect ( response ) . not . toBeInstanceOf ( Response ) ;
215
- const dataAndResponse = await responsePromise . withResponse ( ) ;
216
- expect ( dataAndResponse . data ) . toBe ( response ) ;
217
- expect ( dataAndResponse . response ) . toBe ( rawResponse ) ;
218
- } ) ;
219
-
220
208
// Prism doesn't support JSONL responses yet
221
209
test . skip ( 'results: request options and params are passed correctly' , async ( ) => {
222
210
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
Original file line number Diff line number Diff line change @@ -168,16 +168,4 @@ describe('resource batches', () => {
168
168
client . messages . batches . cancel ( 'message_batch_id' , { path : '/_stainless_unknown_path' } ) ,
169
169
) . rejects . toThrow ( Anthropic . NotFoundError ) ;
170
170
} ) ;
171
-
172
- // Prism doesn't support JSONL responses yet
173
- test . skip ( 'results' , async ( ) => {
174
- const responsePromise = client . messages . batches . results ( 'message_batch_id' ) ;
175
- const rawResponse = await responsePromise . asResponse ( ) ;
176
- expect ( rawResponse ) . toBeInstanceOf ( Response ) ;
177
- const response = await responsePromise ;
178
- expect ( response ) . not . toBeInstanceOf ( Response ) ;
179
- const dataAndResponse = await responsePromise . withResponse ( ) ;
180
- expect ( dataAndResponse . data ) . toBe ( response ) ;
181
- expect ( dataAndResponse . response ) . toBe ( rawResponse ) ;
182
- } ) ;
183
171
} ) ;
You can’t perform that action at this time.
0 commit comments