Skip to content

Commit ee01414

Browse files
stainless-app[bot]RobertCraigie
authored andcommitted
fix(client): send all configured auth headers
1 parent 752f4f1 commit ee01414

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,8 @@ export class OpenAI {
332332
return;
333333
}
334334

335-
protected authHeaders(opts: FinalRequestOptions): Headers | undefined {
336-
return new Headers({ Authorization: `Bearer ${this.apiKey}` });
335+
protected authHeaders(opts: FinalRequestOptions): NullableHeaders | undefined {
336+
return buildHeaders([{ Authorization: `Bearer ${this.apiKey}` }]);
337337
}
338338

339339
protected stringifyQuery(query: Record<string, unknown>): string {

0 commit comments

Comments
 (0)