@huggingface/hub
Version:
Utilities to interact with the Hugging Face hub
16 lines • 731 B
TypeScript
import type { CredentialsParams } from "../types/public";
import { type ModelAdditionalField, type ResolveModelAdditionalFields, type ModelEntry } from "./list-models";
export declare function modelInfo<const T extends ModelAdditionalField = never>(params: {
name: string;
hubUrl?: string;
additionalFields?: T[];
/**
* An optional Git revision id which can be a branch name, a tag, or a commit hash.
*/
revision?: string;
/**
* Custom fetch function to use instead of the default one, for example to use a proxy or edit headers.
*/
fetch?: typeof fetch;
} & Partial<CredentialsParams>): Promise<ModelEntry & ResolveModelAdditionalFields<T>>;
//# sourceMappingURL=model-info.d.ts.map