deepinfra
Version:
Official API wrapper for DeepInfra
12 lines (11 loc) • 476 B
TypeScript
import { AxiosRequestConfig, AxiosResponse } from "axios";
import { IClientConfig } from "../lib/types/common/client-config";
export declare class DeepInfraClient {
private readonly url;
private readonly authToken;
private axiosClient;
private readonly clientConfig;
constructor(url: string, authToken: string, config?: Partial<IClientConfig>);
private backoffDelay;
post<T>(data: object, config?: AxiosRequestConfig): Promise<AxiosResponse<T>>;
}