Skip to content

Commit

Permalink
fix: bump default request timeout to 10 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored and RobertCraigie committed Jul 7, 2023
1 parent c4e2c64 commit c442805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/completions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class Completions extends APIResource {
body: CompletionCreateParams,
options?: Core.RequestOptions,
): Promise<Core.APIResponse<Completion | Stream<Completion>>> {
return this.post('/v1/complete', { body, ...options, stream: body.stream ?? false });
return this.post('/v1/complete', { body, timeout: 600000, ...options, stream: body.stream ?? false });
}
}

Expand Down

0 comments on commit c442805

Please sign in to comment.