Skip to content

Commit

Permalink
Merge pull request #20 from Portkey-AI/fix/remove-custom-import-paths
Browse files Browse the repository at this point in the history
Fix/remove custom import paths
  • Loading branch information
VisargD authored Jan 16, 2024
2 parents a1adf91 + 6d235c8 commit d6a02cc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/apis/embeddings.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { APIResponseType, ApiClientInterface } from "portkey-ai/_types/generalTypes";
import { APIResponseType, ApiClientInterface } from "../_types/generalTypes";
import { ModelParams } from "../_types/portkeyConstructs";
import { ApiResource } from "../apiResource";
import { APIPromise, RequestOptions } from "../baseClient";
Expand Down
2 changes: 1 addition & 1 deletion src/apis/generations.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { APIResponseType, ApiClientInterface } from "portkey-ai/_types/generalTypes";
import { APIResponseType, ApiClientInterface } from "../_types/generalTypes";
import { ModelParams } from "../_types/portkeyConstructs";
import { ApiResource } from "../apiResource";
import { APIPromise, RequestOptions } from "../baseClient";
Expand Down
2 changes: 1 addition & 1 deletion src/apis/postMethod.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { APIResponseType, ApiClientInterface } from "portkey-ai/_types/generalTypes";
import { APIResponseType, ApiClientInterface } from "../_types/generalTypes";
import { ApiResource } from "../apiResource";
import { APIPromise, RequestOptions } from "../baseClient";
import { Stream } from "../streaming";
Expand Down
2 changes: 1 addition & 1 deletion src/baseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { castToError, getPlatformProperties, parseBody } from "./utils";
import { VERSION } from "./version";
fetch
const defaultHttpAgent: Agent = new KeepAliveAgent({ keepAlive: true, timeout: 5 * 60 * 1000 });
export type Fetch = (url: NodeJS.fetch.RequestInfo, init?: RequestInit) => Promise<Response>;
export type Fetch = (url: string, init?: RequestInit) => Promise<Response>;

export type HTTPMethod = "post" | "get" | "put" | "delete"

Expand Down

0 comments on commit d6a02cc

Please sign in to comment.