Skip to content

Commit

Permalink
fix: method signature for list()
Browse files Browse the repository at this point in the history
  • Loading branch information
csgulati09 committed Mar 18, 2024
1 parent c3f49ca commit a23edd2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/apis/assistants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ export class Assistants extends ApiResource {
}

async list(
_query: AssistantListParams,
_query?: AssistantListParams,
params?: ApiClientInterface,
opts?: RequestOptions
): Promise<any> {
const query: AssistantListParams = _query;
const query: AssistantListParams | undefined = _query;
if (params) {
const config = overrideConfig(this.client.config, params.config);
this.client.customHeaders = {
Expand Down
4 changes: 2 additions & 2 deletions src/apis/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ export class MainFiles extends ApiResource {
}

async list(
_query: FileListParams,
_query?: FileListParams,
params?: ApiClientInterface,
opts?: RequestOptions
): Promise<any> {
const query: FileListParams = _query;
const query: FileListParams | undefined = _query;
if (params) {
const config = overrideConfig(this.client.config, params.config);
this.client.customHeaders = {
Expand Down
1 change: 0 additions & 1 deletion src/apis/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import OpenAI from "openai";

export class Models extends ApiResource {
async list(
_body: any,
params?: ApiClientInterface,
opts?: RequestOptions
): Promise<any> {
Expand Down

0 comments on commit a23edd2

Please sign in to comment.