Skip to content

Commit

Permalink
fix: prettier changes
Browse files Browse the repository at this point in the history
  • Loading branch information
csgulati09 committed Oct 10, 2024
1 parent 6136497 commit a0d30fd
Show file tree
Hide file tree
Showing 21 changed files with 1,137 additions and 940 deletions.
6 changes: 3 additions & 3 deletions src/_types/generalTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ export interface ApiClientInterface {
azureResourceName?: string | null | undefined;
azureDeploymentId?: string | null | undefined;
azureApiVersion?: string | null | undefined;
azureEndpointName?: string | null | undefined;
azureEndpointName?: string | null | undefined;
huggingfaceBaseUrl?: string | null | undefined;
forwardHeaders?: Array<string> | null | undefined;
cacheNamespace?: string | null | undefined;
requestTimeout?: number | null | undefined;
strictOpenAiCompliance?: boolean | null | undefined;
anthropicBeta?: string | null | undefined;
anthropicVersion?: string | null | undefined;
mistralFimCompletion?: string | null | undefined;
anthropicVersion?: string | null | undefined;
mistralFimCompletion?: string | null | undefined;
}

export interface APIResponseType {
Expand Down
6 changes: 3 additions & 3 deletions src/_types/portkeyConstructs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ export interface RetrySettings {
}

export interface FunctionInterface {
name: string;
description: string;
parameters: string;
name: string;
description: string;
parameters: string;
}

export interface ModelParams {
Expand Down
18 changes: 9 additions & 9 deletions src/apiResource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ export class ApiResource {
protected client: Portkey;
protected post: Portkey['_post'];
protected put: Portkey['_put'];
protected getMethod: Portkey["_get"]
protected deleteMethod: Portkey["_delete"]
protected getMethod: Portkey['_get'];
protected deleteMethod: Portkey['_delete'];

constructor(client: Portkey) {
this.client = client
this.post = client._post.bind(client)
this.put = client._put.bind(client)
this.getMethod = client._get.bind(client)
this.deleteMethod = client._delete.bind(client) // delete is a reserved word
}
constructor(client: Portkey) {
this.client = client;
this.post = client._post.bind(client);
this.put = client._put.bind(client);
this.getMethod = client._get.bind(client);
this.deleteMethod = client._delete.bind(client); // delete is a reserved word
}
}
Loading

0 comments on commit a0d30fd

Please sign in to comment.