deepinfra
Version:
Official API wrapper for DeepInfra
10 lines (9 loc) • 558 B
TypeScript
import { BaseModel } from "../../../lib/models/base";
import { TextGenerationResponse } from "../../../lib/types/text-generation/response";
import { TextGenerationRequest } from "../../../lib/types/text-generation/request";
import { IClientConfig } from "../../../lib/types/common/client-config";
export declare class TextGeneration extends BaseModel {
constructor(modelName: string, authToken?: string, config?: Partial<IClientConfig>);
generate<T extends TextGenerationResponse>(body: TextGenerationRequest): Promise<T>;
private handleError;
}