Skip to content

Commit 9edcdfd

Browse files
Stainless Botstainless-app[bot]
authored andcommitted
chore(internal): minor reformatting (#911)
1 parent 1c2245d commit 9edcdfd

23 files changed

+49
-48
lines changed

src/index.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from './core';
43
import * as Errors from './error';
5-
import { type Agent, type RequestInit } from './_shims/index';
64
import * as Uploads from './uploads';
5+
import { type Agent, type RequestInit } from './_shims/index';
6+
import * as Core from './core';
77
import * as Pagination from './pagination';
88
import * as API from './resources/index';
99

@@ -86,7 +86,9 @@ export interface ClientOptions {
8686
dangerouslyAllowBrowser?: boolean;
8787
}
8888

89-
/** API Client for interfacing with the OpenAI API. */
89+
/**
90+
* API Client for interfacing with the OpenAI API.
91+
*/
9092
export class OpenAI extends Core.APIClient {
9193
apiKey: string;
9294
organization: string | null;
@@ -143,6 +145,7 @@ export class OpenAI extends Core.APIClient {
143145
maxRetries: options.maxRetries,
144146
fetch: options.fetch,
145147
});
148+
146149
this._options = options;
147150

148151
this.apiKey = apiKey;

src/resources/audio/speech.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from '../../core';
43
import { APIResource } from '../../resource';
4+
import * as Core from '../../core';
55
import * as SpeechAPI from './speech';
66
import { type Response } from '../../_shims/index';
77

src/resources/audio/transcriptions.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from '../../core';
43
import { APIResource } from '../../resource';
4+
import * as Core from '../../core';
55
import * as TranscriptionsAPI from './transcriptions';
6-
import { type Uploadable, multipartFormRequestOptions } from '../../core';
76

87
export class Transcriptions extends APIResource {
98
/**
109
* Transcribes audio into the input language.
1110
*/
1211
create(body: TranscriptionCreateParams, options?: Core.RequestOptions): Core.APIPromise<Transcription> {
13-
return this._client.post('/audio/transcriptions', multipartFormRequestOptions({ body, ...options }));
12+
return this._client.post('/audio/transcriptions', Core.multipartFormRequestOptions({ body, ...options }));
1413
}
1514
}
1615

@@ -30,7 +29,7 @@ export interface TranscriptionCreateParams {
3029
* The audio file object (not file name) to transcribe, in one of these formats:
3130
* flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.
3231
*/
33-
file: Uploadable;
32+
file: Core.Uploadable;
3433

3534
/**
3635
* ID of the model to use. Only `whisper-1` (which is powered by our open source

src/resources/audio/translations.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from '../../core';
43
import { APIResource } from '../../resource';
4+
import * as Core from '../../core';
55
import * as TranslationsAPI from './translations';
6-
import { type Uploadable, multipartFormRequestOptions } from '../../core';
76

87
export class Translations extends APIResource {
98
/**
109
* Translates audio into English.
1110
*/
1211
create(body: TranslationCreateParams, options?: Core.RequestOptions): Core.APIPromise<Translation> {
13-
return this._client.post('/audio/translations', multipartFormRequestOptions({ body, ...options }));
12+
return this._client.post('/audio/translations', Core.multipartFormRequestOptions({ body, ...options }));
1413
}
1514
}
1615

@@ -23,7 +22,7 @@ export interface TranslationCreateParams {
2322
* The audio file object (not file name) translate, in one of these formats: flac,
2423
* mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.
2524
*/
26-
file: Uploadable;
25+
file: Core.Uploadable;
2726

2827
/**
2928
* ID of the model to use. Only `whisper-1` (which is powered by our open source

src/resources/batches.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from '../core';
43
import { APIResource } from '../resource';
54
import { isRequestOptions } from '../core';
5+
import * as Core from '../core';
66
import * as BatchesAPI from './batches';
77
import { CursorPage, type CursorPageParams } from '../pagination';
88

src/resources/beta/assistants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from '../../core';
43
import { APIResource } from '../../resource';
54
import { isRequestOptions } from '../../core';
5+
import * as Core from '../../core';
66
import * as AssistantsAPI from './assistants';
77
import * as Shared from '../shared';
88
import * as MessagesAPI from './threads/messages';

src/resources/beta/threads/messages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from '../../../core';
43
import { APIResource } from '../../../resource';
54
import { isRequestOptions } from '../../../core';
5+
import * as Core from '../../../core';
66
import * as MessagesAPI from './messages';
77
import * as AssistantsAPI from '../assistants';
88
import { CursorPage, type CursorPageParams } from '../../../pagination';

src/resources/beta/threads/runs/runs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from '../../../../core';
4-
import { APIPromise } from '../../../../core';
53
import { APIResource } from '../../../../resource';
64
import { isRequestOptions } from '../../../../core';
5+
import { APIPromise } from '../../../../core';
6+
import * as Core from '../../../../core';
77
import { AssistantStream, RunCreateParamsBaseStream } from '../../../../lib/AssistantStream';
88
import { sleep } from '../../../../core';
99
import { RunSubmitToolOutputsParamsStream } from '../../../../lib/AssistantStream';

src/resources/beta/threads/runs/steps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from '../../../../core';
43
import { APIResource } from '../../../../resource';
54
import { isRequestOptions } from '../../../../core';
5+
import * as Core from '../../../../core';
66
import * as StepsAPI from './steps';
77
import { CursorPage, type CursorPageParams } from '../../../../pagination';
88

src/resources/beta/threads/threads.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from '../../../core';
4-
import { APIPromise } from '../../../core';
53
import { APIResource } from '../../../resource';
64
import { isRequestOptions } from '../../../core';
75
import { AssistantStream, ThreadCreateAndRunParamsBaseStream } from '../../../lib/AssistantStream';
6+
import { APIPromise } from '../../../core';
7+
import * as Core from '../../../core';
88
import * as ThreadsAPI from './threads';
99
import * as AssistantsAPI from '../assistants';
1010
import * as MessagesAPI from './messages';

0 commit comments

Comments
 (0)