We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 752f4f1 commit ee01414Copy full SHA for ee01414
src/client.ts
@@ -332,8 +332,8 @@ export class OpenAI {
332
return;
333
}
334
335
- protected authHeaders(opts: FinalRequestOptions): Headers | undefined {
336
- return new Headers({ Authorization: `Bearer ${this.apiKey}` });
+ protected authHeaders(opts: FinalRequestOptions): NullableHeaders | undefined {
+ return buildHeaders([{ Authorization: `Bearer ${this.apiKey}` }]);
337
338
339
protected stringifyQuery(query: Record<string, unknown>): string {
0 commit comments